πŸ“Š Django
Q. In Django, what does `__str__` method define?
  • (A) Database table name
  • (B) Admin panel heading
  • (C) String representation of object
  • (D) Object ID
πŸ’¬ Discuss
βœ… Correct Answer: (C) String representation of object

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

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

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
55
Total Visits
πŸ“½οΈ
11 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
86%
Success Rate