Q. What is the use of the Meta class in Django models?

  • (A) To define the database engine
  • (B) To write Python metadata
  • (C) To configure model options like ordering
  • (D) To handle admin views
πŸ’¬ Discuss
βœ… Correct Answer: (C) To configure model options like ordering
Explanation: The Meta class defines configuration like verbose_name, ordering, and permissions.
Explanation by: Mr. Dubey
The Meta class defines configuration like verbose_name, ordering, and permissions.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
95
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
91%
Success Rate