A

Admin • 802.91K Points
Coach

Q. In Django, what does `__str__` method define?

  • (A) Database table name
  • (B) Admin panel heading
  • (C) String representation of object
  • (D) Object ID
  • Correct Answer - Option(C)
  • Views: 6
  • Filed under category Django
  • Hashtags:

Explanation by: Admin
`__str__` defines the human-readable string representation of a model object.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.