postgres.aggregates.RegrR2

class RegrR2(y, x) [source] Returns the square of the correlation coefficient as a float, or None if there aren’t any matching rows.

gis.geoip2.GeoIP2.country_name()

GeoIP2.country_name(query) Returns the country name corresponding to the query.

views.debug.SafeExceptionReporterFilter

class SafeExceptionReporterFilter [source]

messages.views.SuccessMessageMixin

class views.SuccessMessageMixin Adds a success message attribute to FormView based classes get_success_message(cleaned_data) cleaned_data is the cleaned data from the form which is used for string formatting Example views.py: from django.contrib.messages.views import SuccessMessageMixin from django.views.generic.edit import CreateView from myapp.models import Author class AuthorCreate(SuccessMessageMixin, CreateView): model = Author success_url = '/success/' success_messag

gis.geos.GEOSGeometry.unary_union

GEOSGeometry.unary_union New in Django 1.10. Computes the union of all the elements of this geometry. The result obeys the following contract: Unioning a set of LineStrings has the effect of fully noding and dissolving the linework. Unioning a set of Polygons will always return a Polygon or MultiPolygon geometry (unlike GEOSGeometry.union(), which may return geometries of lower dimension if a topology collapse occurs).

gis.admin.OSMGeoAdmin

class OSMGeoAdmin A subclass of GeoModelAdmin that uses a spherical mercator projection with OpenStreetMap street data tiles. See the OSMGeoAdmin introduction in the tutorial for a usage example.

db.models.query.QuerySet.last()

last() Works like first(), but returns the last object in the queryset.

utils.timezone.make_naive()

make_naive(value, timezone=None) [source] Returns an naive datetime that represents in timezone the same point in time as value, value being an aware datetime. If timezone is set to None, it defaults to the current time zone.

views.decorators.vary.vary_on_cookie()

vary_on_cookie(func) [source]

views.decorators.http.last_modified()

last_modified(last_modified_func) [source] These decorators can be used to generate ETag and Last-Modified headers; see conditional view processing.