A

Admin • 833.24K Points
Coach

Q. What does the objects.all() method return?

  • (A) A single model object
  • (B) A list of all models as dictionaries
  • (C) A QuerySet of all model instances
  • (D) The schema of the table
  • Correct Answer - Option(C)
  • Views: 24
  • Filed under category Django
  • Hashtags:

Explanation by: Admin

objects.all() returns a QuerySet containing all instances of a model.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.