- Language: en
54 results for super in the development version
-
The Django admin site
- … super(PersonAdmin, self).__init__(*args, **kwargs) . You can use super().__init__(*args, **kwargs) . Discovery of admin …
-
How to create custom model fields
- … super () . __init__ ( * args , ** kwargs ) def deconstruct ( self ): name , path , args , kwargs = super () . deconstruct () del kwargs …
-
Using mixins with class-based views
- … super () . get ( request , * args , ** kwargs ) def get_context_data ( self , ** kwargs ): context = super () . get_context …
-
Form handling with class-based views
- … super () . dispatch ( request , * args , ** kwargs ) def form_invalid ( self , form ): response = super () . form_invalid ( form …
-
Testing tools
- … super implementation: class MyTestCase ( TestCase ): @classmethod def setUpClass ( cls ): super () . setUpClass () ... @classmethod def tearDownClass ( cls ): ... super …
-
Multiple databases
- … super() ) or do the appropriate handling of the _db attribute on the manager (a string …
-
Query Expressions
- … super () . as_sql ( compiler , connection , function = "CONCAT_WS" , template = " %(function)s ('', %(expressions …
-
Form and field validation
- … super() call and use self.cleaned_data instead: def clean ( self ): super () . clean () cc_myself = self …
-
Built-in class-based generic views
- … super), any children of that class will also need to explicitly set it after super …
-
Serializing Django objects
- … super () . default ( obj ) You can then pass cls=LazyEncoder to the serializers.serialize() function: from django.core.serializers …