A

Admin • 833.24K Points
Coach

Q. Which method retrieves a single object matching a queryset in Django?

  • (A) get()
  • (B) fetch()
  • (C) find()
  • (D) select()
  • Correct Answer - Option(A)
  • Views: 22
  • Filed under category Django
  • Hashtags:

Explanation by: Admin

`get()` returns a single object matching a given filter or raises `DoesNotExist` if not found.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.