- Language: en
43 results for super in version 1.10
-
Form handling with class-based views
- … super ( ContactView , self ) . form_valid ( form ) Notes: FormView inherits TemplateResponseMixin so template_name can be used …
-
Query Expressions
- … super ( ConcatPair , self ) . as_sql ( compiler , connection , function = 'CONCAT_WS' , template = " %(function …
-
Models
- … super ( Blog , self ) . save ( * args , ** kwargs ) # Call the "real" save() method. do_something …
-
System check framework
- … super ( RangedIntegerField , self ) . __init__ ( ** kwargs ) self . min = min self . max = max def check ( self , ** kwargs …
-
Formsets
- … super ( BaseArticleFormSet , self ) . add_fields ( form , index ) ... form . fields [ "my_field" ] = forms . CharField …
-
Managers
- … super ( DahlBookManager , self ) . get_queryset () . filter ( author = 'Roald Dahl' ) # Then hook it into …
-
Base views
- … super ( HomePageView , self ) . get_context_data ( ** kwargs ) context [ 'latest_articles' ] = Article . objects . all ()[: 5 ] return …
-
Translation
- … super ( Command , self ) . add_arguments ( parser ) parser . add_argument ( '--extra-keyword' , dest = 'xgettext …
-
Writing custom django-admin commands
- … super ( Command , self ) . __init__ ( * args , ** kwargs ) # ... BaseCommand. add_arguments ( parser ) [source] Entry point to add parser …
-
Customizing authentication in Django
- … super() to retain the normalization. classmethod normalize_username ( username ) New in Django 1.10. Applies NFKC …