- Language: en
18 results for classmethod in version 1.11
-
Testing tools
- … classmethod def setUpClass ( cls ): super ( MyTestCase , cls ) . setUpClass () ... @classmethod def tearDownClass ( cls ): ... super ( MyTestCase , cls ) . tearDownClass …
-
How to use sessions
- … classmethod def get_session_store_class ( cls ): return SessionStore class SessionStore ( DBStore ): @classmethod def get_model …
-
Model instance reference
- … classmethod on the model class: from django.db import models class Book ( models . Model ): title = models …
-
Customizing authentication in Django
- … classmethod get_email_field_name () New in Django 1.11. Returns the name of the email …
-
System check framework
- … classmethod, not an instance method: class MyModel ( models . Model ): @classmethod def check ( cls , ** kwargs ): errors …
-
Geolocation with GeoIP2
- … classmethod GeoIP2. open ( path , cache ) This classmethod instantiates the GeoIP object from the given database …
-
Managers
- … classmethod from_queryset ( queryset_class ) For advanced usage you might want both a custom Manager …
-
GEOS API
- … classmethod GEOSGeometry. from_gml ( gml_string ) New in Django 1.11. Constructs a GEOSGeometry from the given …
-
Geolocation with GeoIP
- … classmethod GeoIP. open ( path , cache ) [source] This classmethod instantiates the GeoIP object from the given …
-
GDAL API
- … classmethod from_gml ( gml_string ) New in Django 1.11. Constructs an OGRGeometry from the given …