- Language: en
9 results for classmethod in version 1.8
-
Model instance reference
- … classmethod on the model class: from django.db import models class Book ( models . Model ): title = models …
-
Geolocation with GeoIP
- … classmethod GeoIP. open ( path , cache ) [source] This classmethod instantiates the GeoIP object from the given …
-
Measurement Objects
- … classmethod unit_attname ( unit_name ) Returns the distance unit attribute name for the given full …
-
Lookup API reference
- … classmethod register_lookup ( lookup ) Registers a new lookup in the class. For example DateField.register_lookup …
-
QuerySet API reference
- … classmethod as_manager () New in Django 1.7. Class method that returns an instance of Manager …
-
GEOS API
- … classmethod from_bbox ( bbox ) Returns a polygon object from the given bounding-box, a 4-tuple …
-
GDAL API
- … classmethod from_bbox ( bbox ) Constructs a Polygon from the given bounding-box (a 4-tuple …
-
Built-in class-based views API
- … classmethod: urlpatterns = [ url ( r '^view/$' , MyView . as_view ( size = 42 )), ] Thread safety with …
-
Base views
- … classmethod as_view ( **initkwargs ) Returns a callable view that takes a request and returns a response …