S

Shyam Dubey • 3.70K Points
Extraordinary

Q. What is the default ordering of Django QuerySets?

  • (A) Descending by ID
  • (B) None
  • (C) Ascending by ID
  • (D) Alphabetically by name
  • Correct Answer - Option(C)
  • Views: 11
  • Filed under category Django
  • Hashtags:

Explanation by: Shyam Dubey
By default, Django QuerySets are ordered by primary key in ascending order.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.