- Language: en
6 results for super in version 3.2
-
Writing custom model fields
- … super () . __init__ ( * args , ** kwargs ) def deconstruct ( self ): name , path , args , kwargs = super () . deconstruct () del kwargs …
-
Writing custom django-admin commands
- … super () . __init__ ( * args , ** kwargs ) # ... BaseCommand. create_parser ( prog_name , subcommand , ** kwargs ) [source] Returns a CommandParser …
-
Custom template backend
- … super () . __init__ ( params ) self . engine = foobar . Engine ( ** options ) def from_string ( self , template_code ): try : return …
-
Custom Lookups
- … super () . get_lookup ( lookup_name ) You would then define get_coordinate_lookup appropriately to return …
-
Error reporting
- … super () . get_traceback_data () # ... remove/add something here ... return data get_traceback_html () [source] Return HTML …
-
Overriding templates
- … super }} {% endblock %} Key points to note: The example creates a file at templates/admin/base_site.html that uses …