Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

purpose of meta class in django

purpose of meta class in django

Model Meta is basically the inner class of your model class. 
Model Meta is basically used to change the behavior of your model fields like changing order options,verbose_name and lot of other options. 
It's completely optional to add Meta class in your model
Source by docs.djangoproject.com #
 
PREVIOUS NEXT
Tagged: #purpose #meta #class #django
ADD COMMENT
Topic
Name
6+9 =