- Language: en
47 results for super in version 3.1
-
The syndication feed framework
- … super () . get_context_data ( ** kwargs ) context [ 'foo' ] = 'bar' return context And the template …
-
Form handling with class-based views
- … super () . form_valid ( form ) Notes: FormView inherits TemplateResponseMixin so template_name can be used here …
-
Creating forms from models
- … super () . __init__ ( * args , ** kwargs ) self . queryset = Author . objects . filter ( name__startswith = 'O' ) Then …
-
Formsets
- … super () . add_fields ( form , index ) ... form . fields [ "my_field" ] = forms . CharField () >>> ArticleFormSet …
-
Models
- … super () . save ( * args , ** kwargs ) # Call the "real" save() method. do_something_else () You can also …
-
Base views
- … super() . dispatch ( request , *args , **kwargs ) The view part of the view – the method that accepts …
-
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 …
-
Form fields
- … super () . __init__ ( error_messages = error_messages , fields = fields , require_all_fields = False , ** kwargs ) widget Must …
-
Customizing authentication in Django
- … super() to retain the normalization. classmethod get_email_field_name () Returns the name of the email …