- Language: en
11 results for classmethod in version 3.2
-
Model instance reference
- … classmethod on the model class: from django.db import models class Book ( models . Model ): title = models …
-
GDAL API
- … classmethod from_gml ( gml_string ) Constructs an OGRGeometry from the given GML string. classmethod from …
-
Geolocation with GeoIP2
- … classmethod GeoIP2. open ( path , cache ) This classmethod instantiates the GeoIP object from the given database …
-
GEOS API
- … classmethod GEOSGeometry. from_gml ( gml_string ) Constructs a GEOSGeometry from the given GML string. Properties …
-
Measurement Objects
- … classmethod unit_attname ( unit_name ) Returns the distance unit attribute name for the given full …
-
Lookup API reference
- … classmethod register_lookup ( lookup , lookup_name = None ) Registers a new lookup in the class. For example …
-
Built-in class-based views API
- … classmethod: urlpatterns = [ path ( 'view/' , MyView . as_view ( size = 42 )), ] Thread safety with view …
-
QuerySet API reference
- … classmethod as_manager () Class method that returns an instance of Manager with a copy of the QuerySet …
-
Base views
- … classmethod as_view ( ** initkwargs ) Returns a callable view that takes a request and returns a response …
-
Request and response objects
- … classmethod QueryDict. fromkeys ( iterable , value = '' , mutable = False , encoding = None ) [source] Creates a new QueryDict with …
-
Django Utils
- … classmethod , the @classproperty decorator converts the result of a method with a single cls argument …