- Language: en
16 results for classmethod in version 1.8
-
Testing tools
- … classmethod def setUpClass ( cls ): super ( MyTestCase , cls ) . setUpClass () # Call parent first ... @classmethod def tearDownClass ( cls ): ... super …
-
Model instance reference
- … classmethod on the model class: from django.db import models class Book ( models . Model ): title = models …
-
Managers
- … classmethod from_queryset ( queryset_class ) For advanced usage you might want both a custom Manager …
-
Measurement Objects
- … classmethod unit_attname ( unit_name ) Returns the distance unit attribute name for the given full …
-
System check framework
- … classmethod, not an instance method: class MyModel ( models . Model ): @classmethod def check ( cls , ** kwargs ): errors …
-
Geolocation with GeoIP
- … classmethod GeoIP. open ( path , cache ) [source] This classmethod instantiates the GeoIP object from the given …
-
GEOS API
- … classmethod from_bbox ( bbox ) Returns a polygon object from the given bounding-box, a 4-tuple …
-
Introduction to class-based views
- … classmethod def as_view ( cls , ** initkwargs ): view = super ( LoginRequiredMixin , cls ) . as_view ( ** initkwargs ) return login …
-
Advanced testing topics
- … classmethod DiscoverRunner. add_arguments ( parser ) [source] New in Django 1.8. Override this class method to add custom …
-
GDAL API
- … classmethod from_bbox ( bbox ) Constructs a Polygon from the given bounding-box (a 4-tuple …