utils.functional.cached_property

class cached_property(object, name) [source] The @cached_property decorator caches the result of a method with a single self argument as a property. The cached result will persist as long as the instance does, so if the instance is passed around and the function subsequently invoked, the cached result will be returned. Consider a typical case, where a view might need to call a model’s method to perform some computation, before placing the model instance into the context, where the template m

admin.ModelAdmin.get_changelist()

ModelAdmin.get_changelist(request, **kwargs) [source] Returns the Changelist class to be used for listing. By default, django.contrib.admin.views.main.ChangeList is used. By inheriting this class you can change the behavior of the listing.

template.loaders.cached.Loader

class cached.Loader By default, the templating system will read and compile your templates every time they need to be rendered. While the Django templating system is quite fast, the overhead from reading and compiling templates can add up. The cached template loader is a class-based loader that you configure with a list of other loaders that it should wrap. The wrapped loaders are used to locate unknown templates when they are first encountered. The cached loader then stores the compiled Tem

forms.EmailField

class EmailField(**kwargs) [source] Default widget: EmailInput Empty value: '' (an empty string) Normalizes to: A Unicode object. Validates that the given value is a valid email address, using a moderately complex regular expression. Error message keys: required, invalid Has two optional arguments for validation, max_length and min_length. If provided, these arguments ensure that the string is at most or at least the given length.

views.generic.base.TemplateResponseMixin.get_template_names()

get_template_names() Returns a list of template names to search for when rendering the template. The first template that is found will be used. If template_name is specified, the default implementation will return a list containing template_name (if it is specified).

forms.IntegerField

class IntegerField(**kwargs) [source] Default widget: NumberInput when Field.localize is False, else TextInput. Empty value: None Normalizes to: A Python integer or long integer. Validates that the given value is an integer. Leading and trailing whitespace is allowed, as in Python’s int() function. Error message keys: required, invalid, max_value, min_value The max_value and min_value error messages may contain %(limit_value)s, which will be substituted by the appropriate limit. Takes tw

forms.BooleanField

class BooleanField(**kwargs) [source] Default widget: CheckboxInput Empty value: False Normalizes to: A Python True or False value. Validates that the value is True (e.g. the check box is checked) if the field has required=True. Error message keys: required Note Since all Field subclasses have required=True by default, the validation condition here is important. If you want to include a boolean in your form that can be either True or False (e.g. a checked or unchecked checkbox), you mu

auth.password_validation.password_validators_help_texts()

password_validators_help_texts(password_validators=None) [source] Returns a list of the help texts of all validators. These explain the password requirements to the user.

views.generic.dates.MonthArchiveView

class MonthArchiveView [source] A monthly archive page showing all objects in a given month. Objects with a date in the future are not displayed unless you set allow_future to True. Ancestors (MRO) django.views.generic.list.MultipleObjectTemplateResponseMixin django.views.generic.base.TemplateResponseMixin django.views.generic.dates.BaseMonthArchiveView django.views.generic.dates.YearMixin django.views.generic.dates.MonthMixin django.views.generic.dates.BaseDateListView django.views.generic.

gis.db.models.GeoQuerySet.length()

GeoQuerySet.length(**kwargs) Deprecated since version 1.9: Use the Length function instead. Returns the length of the geometry field in a length attribute (a Distance object) on each model in the queryset.