M

Mr. Dubey • 100.28K Points
Coach

Q. What is the purpose of Django's `Meta` class in models?

  • (A) To define view permissions
  • (B) To store metadata and options about the model
  • (C) To specify user fields
  • (D) To create forms
  • Correct Answer - Option(B)
  • Views: 10
  • Filed under category Django

Explanation by: Mr. Dubey
The `Meta` class in a Django model is used to define metadata such as ordering, db_table name, etc.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics