- Language: en
18 results for classmethod in version 3.2
-
Testing tools
- … classmethod def setUpClass ( cls ): super () . setUpClass () ... @classmethod def tearDownClass ( cls ): ... super () . tearDownClass () Be sure to account …
-
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 () Returns the name of the email field specified by the EMAIL …
-
GDAL API
- … classmethod from_gml ( gml_string ) Constructs an OGRGeometry from the given GML string. classmethod from …
-
GEOS API
- … classmethod GEOSGeometry. from_gml ( gml_string ) Constructs a GEOSGeometry from the given GML string. Properties …
-
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 …
-
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 …