views.decorators.http.etag()

etag(etag_func) [source]

forms.MultiValueField

class MultiValueField(fields=(), **kwargs) [source] Default widget: TextInput Empty value: '' (an empty string) Normalizes to: the type returned by the compress method of the subclass. Validates the given value against each of the fields specified as an argument to the MultiValueField. Error message keys: required, invalid, incomplete Aggregates the logic of multiple fields that together produce a single value. This field is abstract and must be subclassed. In contrast with the single-va

forms.DecimalField

class DecimalField(**kwargs) [source] Default widget: NumberInput when Field.localize is False, else TextInput. Empty value: None Normalizes to: A Python decimal. Validates that the given value is a decimal. Leading and trailing whitespace is ignored. Error message keys: required, invalid, max_value, min_value, max_digits, max_decimal_places, max_whole_digits The max_value and min_value error messages may contain %(limit_value)s, which will be substituted by the appropriate limit. Simila

admin.InlineModelAdmin.raw_id_fields

InlineModelAdmin.raw_id_fields By default, Django’s admin uses a select-box interface (<select>) for fields that are ForeignKey. Sometimes you don’t want to incur the overhead of having to select all the related instances to display in the drop-down. raw_id_fields is a list of fields you would like to change into an Input widget for either a ForeignKey or ManyToManyField: class BookInline(admin.TabularInline): model = Book raw_id_fields = ("pages",)

http.HttpResponse.delete_cookie()

HttpResponse.delete_cookie(key, path='/', domain=None) Deletes the cookie with the given key. Fails silently if the key doesn’t exist. Due to the way cookies work, path and domain should be the same values you used in set_cookie() – otherwise the cookie may not be deleted.

gis.db.models.functions.Envelope

class Envelope(expression, **extra) Availability: MySQL, PostGIS, SpatiaLite Accepts a single geographic field or expression and returns the geometry representing the bounding box of the geometry.

db.migrations.operations.AlterIndexTogether

class AlterIndexTogether(name, index_together) [source] Changes the model’s set of custom indexes (the index_together option on the Meta subclass).

db.models.as_vendorname()

as_vendorname(self, compiler, connection) Works like as_sql() method. When an expression is compiled by compiler.compile(), Django will first try to call as_vendorname(), where vendorname is the vendor name of the backend used for executing the query. The vendorname is one of postgresql, oracle, sqlite, or mysql for Django’s built-in backends.

gis.gdal.OGRGeometry.clone()

clone() Returns a new OGRGeometry clone of this geometry object.

core.management.BaseCommand.can_import_settings

BaseCommand.can_import_settings A boolean indicating whether the command needs to be able to import Django settings; if True, execute() will verify that this is possible before proceeding. Default value is True.