A

Admin • 828.03K Points
Coach

Q. Which method is used to create a new model object and save it?

  • (A) Model.save()
  • (B) Model.create()
  • (C) Model.insert()
  • (D) Model.build()
  • Correct Answer - Option(B)
  • Views: 15
  • Filed under category Django
  • Hashtags:

Explanation by: Admin
`Model.objects.create()` is a shortcut to create and save an object in one step.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.