- Language: en
16 results for _meta in version 2.0
-
Models
- … Meta : abstract = True ordering = [ 'name' ] class Student ( CommonInfo ): # ... class Meta ( CommonInfo . Meta ): db_table …
-
Creating forms from models
- … Meta ( ArticleForm . Meta ): ... exclude = ( 'body' ,) This adds the extra method from the EnhancedArticleForm …
-
Translation
- … meta . verbose_name else : name = Report . _meta . verbose_name_plural text = ngettext ( 'There is %(count …
-
Customizing authentication in Django
- … Meta ( UserCreationForm . Meta ): model = CustomUser fields = UserCreationForm . Meta . fields + ( 'custom_field' ,) Custom users …
-
Multiple databases
- … meta . app_label == 'auth' or \ obj2 . _meta . app_label == 'auth' : return …
-
Serializing Django objects
- … Meta : unique_together = (( 'first_name' , 'last_name' ),) class Book ( models . Model …
-
Many-to-many relationships
- … Meta : ordering = ( 'title' ,) class Article ( models . Model ): headline = models . CharField ( max_length = 100 ) publications …
-
Managers
- … Meta : abstract = True If you use this directly in a subclass, objects will be the default …
-
Tablespaces
- … Meta . This option also affects tables automatically created for ManyToManyField s in the model. You can use the DEFAULT …
-
Django’s cache framework
- … meta . app_label == 'django_cache' : return 'cache_replica' return None def db_for_write …