S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which model method is used to retrieve a single object by its primary key?

  • (A) get()
  • (B) filter()
  • (C) select()
  • (D) all()
  • Correct Answer - Option(A)
  • Views: 15
  • Filed under category Django
  • Hashtags:

Explanation by: Shyam Dubey
get() retrieves a single object matching the query or raises an exception.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.