- Language: en
44 results for super in version 1.11
-
The Django admin site
- … super(PersonAdmin, self).__init__(*args, **kwargs) . If you are using Python 3 and don’t have …
-
Using mixins with class-based views
- … super ( PublisherDetail , self ) . get ( request , * args , ** kwargs ) def get_context_data ( self , ** kwargs ): context = super …
-
Writing custom model fields
- … super ( HandField , self ) . __init__ ( * args , ** kwargs ) def deconstruct ( self ): name , path , args , kwargs = super ( HandField …
-
Multiple databases
- … super() ) or do the appropriate handling of the _db attribute on the manager (a string …
-
Testing tools
- … super implementation: class MyTestCase ( TestCase ): @classmethod def setUpClass ( cls ): super ( MyTestCase , cls ) . setUpClass () ... @classmethod def tearDownClass …
-
Form and field validation
- … super() call and use self.cleaned_data instead: def clean ( self ): super ( ContactForm , self ) . clean () cc_myself …
-
Built-in class-based generic views
- … super), any children of that class will also need to explicitly set it after super …
-
Model instance reference
- … super()). if len ( values ) != len ( cls . _meta . concrete_fields ): values = list ( values ) values . reverse () values …
-
Form handling with class-based views
- … super ( ContactView , self ) . form_valid ( form ) Notes: FormView inherits TemplateResponseMixin so template_name can be used …
-
The syndication feed framework
- … super ( ArticlesFeed , self ) . get_context_data ( ** kwargs ) context [ 'foo' ] = 'bar' return …