- Language: en
17 results for super in version 5.2
-
The Django admin site
- … super(PersonAdmin, self).__init__(*args, **kwargs) . You can use super().__init__(*args, **kwargs) . Discovery of admin …
-
Form and field validation
- … super() call and use self.cleaned_data instead: def clean ( self ): super () . clean () cc_myself = self …
-
Query Expressions
- … super () . as_sql ( compiler , connection , function = "CONCAT_WS" , template = " %(function)s ('', %(expressions …
-
Model instance reference
- … super()). if len ( values ) != len ( cls . _meta . concrete_fields ): values = list ( values ) values . reverse () values …
-
Widgets
- … super () . __init__ ( * args , ** kwargs ) self . fields [ "name" ] . widget . attrs . update ({ "class" : "special …
-
The syndication feed framework
- … super () . get_context_data ( ** kwargs ) context [ "foo" ] = "bar" return context And the template …
-
Base views
- … super() . dispatch ( request , * args , ** kwargs ) The view part of the view – the method that accepts …
-
Form fields
- … super () . __init__ ( error_messages = error_messages , fields = fields , require_all_fields = False , ** kwargs ) widget Must …
-
ModelAdmin List Filters
- … super () . lookups ( request , model_admin ) def queryset ( self , request , queryset ): if request . user . is_superuser …
-
Generic display views
- … super () . get_context_data ( ** kwargs ) context [ "now" ] = timezone . now () return context Example myapp/urls.py …