- Language: en
16 results for super in version 3.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 …
-
The syndication feed framework
- … super () . get_context_data ( ** kwargs ) context [ 'foo' ] = 'bar' return context And the template …
-
Widgets
- … super () . __init__ ( * args , ** kwargs ) self . fields [ 'name' ] . widget . attrs . update ({ 'class' : 'special …
-
Form fields
- … super () . __init__ ( error_messages = error_messages , fields = fields , require_all_fields = False , ** kwargs ) widget Must …
-
Base views
- … super() . dispatch ( request , * args , ** kwargs ) The view part of the view – the method that accepts …
-
JavaScript customizations in the admin
- … super }} < script src = " {% static 'app/formset_handlers.js' %} " ></ script > {% endblock …
-
Generic display views
- … super () . get_context_data ( ** kwargs ) context [ 'now' ] = timezone . now () return context Example myapp/urls.py …