4👍
A Meta
attribute defined on a class is a bespoke pattern for associating and containing additional data that is going to be introspected by the class’ metaclass upon type creation.
You can review the ModelBase
metaclass and see how it uses the Meta
attribute to configure the resulting model class that’s being constructed.
- [Django]-How to create SaaS application with Python and Django
- [Django]-How would you create a 'manual' django migration?
- [Django]-Django TemplateSyntaxError Could not parse the remainder: '()'
Source:stackexchange.com