- Language: en
16 results for super in version 2.0
-
The Django admin site
- … super(PersonAdmin, self).__init__(*args, **kwargs) . You can use super().__init__(*args, **kwargs) . Discovery of admin …
-
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 …
-
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 …
-
Generic display views
- … super () . get_context_data ( ** kwargs ) context [ 'now' ] = timezone . now () return context Example myapp/urls.py …
-
JavaScript customizations in the admin
- … super }} < script type = "text/javascript" src = " {% static 'app/formset_handlers.js' %} " ></ script …
-
Form fields
- … super () . __init__ ( error_messages = error_messages , fields = fields , require_all_fields = False , ** kwargs ) widget Must …
-
Base views
- … super () . get_context_data ( ** kwargs ) context [ 'latest_articles' ] = Article . objects . all ()[: 5 ] return …