- Language: en
16 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 …
-
Form and field validation
- … super() call and use self.cleaned_data instead: def clean ( self ): super ( ContactForm , self ) . clean () cc_myself …
-
Model instance reference
- … super()). if len ( values ) != len ( cls . _meta . concrete_fields ): values = list ( values ) values . reverse () values …
-
The syndication feed framework
- … super ( ArticlesFeed , self ) . get_context_data ( ** kwargs ) context [ 'foo' ] = 'bar' return …
-
Query Expressions
- … super ( ConcatPair , self ) . as_sql ( compiler , connection , function = 'CONCAT_WS' , template = " %(function …
-
Generic display views
- … super ( ArticleDetailView , self ) . get_context_data ( ** kwargs ) context [ 'now' ] = timezone . now () return context …
-
Base views
- … super ( HomePageView , self ) . get_context_data ( ** kwargs ) context [ 'latest_articles' ] = Article . objects . all ()[: 5 ] return …
-
Widgets
- … super ( DateSelectorWidget , self ) . __init__ ( _widgets , attrs ) def decompress ( self , value ): if value : return [ value . day , value …
-
JavaScript customizations in the admin
- … super }} < script type = "text/javascript" src = " {% static 'app/formset_handlers.js' %} " ></ script …
-
Form fields
- … super ( PhoneField , self ) . __init__ ( error_messages = error_messages , fields = fields , require_all_fields = False , * args …