- Language: en
45 results for super in version 3.0
-
Form handling with class-based views
- … super () . form_valid ( form ) Notes: FormView inherits TemplateResponseMixin so template_name can be used here …
-
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 …
-
Managers
- … super () . get_queryset () . filter ( author = 'Roald Dahl' ) # Then hook it into the Book …
-
Writing custom django-admin commands
- … super () . __init__ ( * args , ** kwargs ) # ... BaseCommand. create_parser ( prog_name , subcommand , **kwargs ) Returns a CommandParser instance …
-
Formsets
- … super () . add_fields ( form , index ) ... form . fields [ "my_field" ] = forms . CharField () >>> ArticleFormSet …
-
Customizing authentication in Django
- … super() to retain the normalization. classmethod get_email_field_name () Returns the name of the email …
-
System check framework
- … super () . __init__ ( ** kwargs ) self . min = min self . max = max def check ( self , ** kwargs ): # Call the superclass …
-
Base views
- … super() . dispatch ( request , *args , **kwargs ) The view part of the view – the method that accepts …
-
Models
- … super () . save ( * args , ** kwargs ) # Call the "real" save() method. do_something_else () You can also …