views.decorators.cache.cache_control()

cache_control(**kwargs) [source] This decorator patches the response’s Cache-Control header by adding all of the keyword arguments to it. See patch_cache_control() for the details of the transformation.

db.models.Aggregate.function

function A class attribute describing the aggregate function that will be generated. Specifically, the function will be interpolated as the function placeholder within template. Defaults to None.

db.models.query.QuerySet.select_for_update()

select_for_update(nowait=False) Returns a queryset that will lock rows until the end of the transaction, generating a SELECT ... FOR UPDATE SQL statement on supported databases. For example: entries = Entry.objects.select_for_update().filter(author=request.user) All matched entries will be locked until the end of the transaction block, meaning that other transactions will be prevented from changing or acquiring locks on them. Usually, if another transaction has already acquired a lock on on

forms.CheckboxInput

class CheckboxInput [source] Checkbox: <input type='checkbox' ...> Takes one optional argument: check_test A callable that takes the value of the CheckboxInput and returns True if the checkbox should be checked for that value.

db.models.Options.verbose_name_plural

Options.verbose_name_plural The plural name for the object: verbose_name_plural = "stories" If this isn’t given, Django will use verbose_name + "s".

gis.geoip2.GeoIP2.country()

GeoIP2.country(query) Returns a dictionary with the country code and country for the given query.

http.HttpResponse.charset

HttpResponse.charset A string denoting the charset in which the response will be encoded. If not given at HttpResponse instantiation time, it will be extracted from content_type and if that is unsuccessful, the DEFAULT_CHARSET setting will be used.

gis.gdal.Envelope.ll

ll The lower-left coordinate, as a tuple.

utils.translation.deactivate()

deactivate() [source] Deactivates the currently active translation object so that further _ calls will resolve against the default translation object, again.

views.generic.detail.SingleObjectMixin.slug_field

slug_field The name of the field on the model that contains the slug. By default, slug_field is 'slug'.