utils.cache.patch_vary_headers()

patch_vary_headers(response, newheaders) [source] Adds (or updates) the Vary header in the given HttpResponse object. newheaders is a list of header names that should be in Vary. Existing headers in Vary aren’t removed.

utils.html.conditional_escape()

conditional_escape(text) [source] Similar to escape(), except that it doesn’t operate on pre-escaped strings, so it will not double escape.

gis.widgets.BaseGeometryWidget

class BaseGeometryWidget This is an abstract base widget containing the logic needed by subclasses. You cannot directly use this widget for a geometry field. Note that the rendering of GeoDjango widgets is based on a template, identified by the template_name class attribute. OpenLayersWidget

utils.http.urlquote_plus()

urlquote_plus(url, safe='') [source] A version of Python’s urllib.quote_plus() function that can operate on unicode strings. The url is first UTF-8 encoded before quoting. The returned string can safely be used as part of an argument to a subsequent iri_to_uri() call without double-quoting occurring. Employs lazy execution.

postgres.forms.RangeWidget.decompress()

decompress(value) Takes a single “compressed” value of a field, for example a DateRangeField, and returns a tuple representing and lower and upper bound.

apps.AppConfig.label

AppConfig.label Short name for the application, e.g. 'admin' This attribute allows relabeling an application when two applications have conflicting labels. It defaults to the last component of name. It should be a valid Python identifier. It must be unique across a Django project.

gis.gdal.OGRGeometry.within()

within(other) Returns True if this geometry is contained within the other, otherwise returns False.

gis.geos.GEOSGeometry.dims

GEOSGeometry.dims Returns the dimension of the geometry: 0 for Points and MultiPoints 1 for LineStrings and MultiLineStrings 2 for Polygons and MultiPolygons -1 for empty GeometryCollections the maximum dimension of its elements for non-empty GeometryCollections

db.models.Aggregate.template

template A class attribute, as a format string, that describes the SQL that is generated for this aggregate. Defaults to '%(function)s( %(expressions)s )'.

admin.ModelAdmin.view_on_site

ModelAdmin.view_on_site Set view_on_site to control whether or not to display the “View on site” link. This link should bring you to a URL where you can display the saved object. This value can be either a boolean flag or a callable. If True (the default), the object’s get_absolute_url() method will be used to generate the url. If your model has a get_absolute_url() method but you don’t want the “View on site” button to appear, you only need to set view_on_site to False: from django.contrib