A

Admin • 828.03K Points
Coach

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

  • (A) commit()
  • (B) save()
  • (C) submit()
  • (D) create()
  • Correct Answer - Option(B)
  • Views: 14
  • Filed under category Django
  • Hashtags:

Explanation by: Admin
`save()` 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.