A

Admin • 828.03K Points
Coach

Q. What is the purpose of `Model.objects.all()`?

  • (A) Deletes all objects
  • (B) Returns a list of all fields
  • (C) Returns a QuerySet of all model instances
  • (D) Returns a model dictionary
  • Correct Answer - Option(C)
  • Views: 7
  • Filed under category Django
  • Hashtags:

Explanation by: Admin
`all()` returns all records of that model in a QuerySet.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.