- Language: en
54 results for super in the development version
-
Serializing Django objects
- … super () . default ( obj ) You can then pass cls=LazyEncoder to the serializers.serialize() function: from django.core.serializers …
-
File Uploads
- … super () . __init__ ( * args , ** kwargs ) def clean ( self , data , initial = None ): single_file_clean = super () . clean …
-
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 …
-
How to create custom django-admin commands
- … super () . __init__ ( * args , ** kwargs ) # ... BaseCommand. create_parser ( prog_name , subcommand , ** kwargs ) [source] Returns a CommandParser …
-
Models
- … super () . save ( ** kwargs ) # Call the "real" save() method. do_something_else () You can also …
-
Creating forms from models
- … super () . __init__ ( * args , ** kwargs ) self . queryset = Author . objects . filter ( name__startswith = "O" ) Then …
-
Base views
- … super() . dispatch ( request , * args , ** kwargs ) The view part of the view – the method that accepts …
-
Customizing authentication in Django
- … super() to retain the normalization. classmethod get_email_field_name () Returns the name of the email …
-
Managers
- … super () . get_queryset () . filter ( author = "Roald Dahl" ) # Then hook it into the Book …