A

Admin • 833.24K Points
Coach

Q. Which Django model method is used to save data to the database?

  • (A) insert()
  • (B) add()
  • (C) save()
  • (D) commit()
  • Correct Answer - Option(C)
  • Views: 22
  • Filed under category Django
  • Hashtags:

Explanation by: Admin

The `save()` method writes the model instance to the database.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.