A

Admin • 828.03K Points
Coach

Q. Which Django ORM method returns a single object or raises DoesNotExist?

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

Explanation by: Admin
`get()` fetches a single object or raises `DoesNotExist` exception if not found.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.