template.base.Origin

class Origin [source] name The path to the template as returned by the template loader. For loaders that read from the file system, this is the full path to the template. If the template is instantiated directly rather than through a template loader, this is a string value of <unknown_source>. template_name The relative path to the template as passed into the template loader. If the template is instantiated directly rather than through a template loader, this is None.

views.generic.dates.MonthMixin

class MonthMixin [source] A mixin that can be used to retrieve and provide parsing information for a month component of a date. Methods and Attributes month_format The strftime() format to use when parsing the month. By default, this is '%b'. month Optional The value for the month, as a string. By default, set to None, which means the month will be determined using other means. get_month_format() [source] Returns the strftime() format to use when parsing the month. Returns mon

utils.timezone.deactivate()

deactivate() [source] Unsets the current time zone.

utils.translation.override()

override(language, deactivate=False) [source] A Python context manager that uses django.utils.translation.activate() to fetch the translation object for a given language, activates it as the translation object for the current thread and reactivates the previous active language on exit. Optionally, it can simply deactivate the temporary translation on exit with django.utils.translation.deactivate() if the deactivate argument is True. If you pass None as the language argument, a NullTranslatio

auth.mixins.AccessMixin.login_url

login_url Default return value for get_login_url(). Defaults to None in which case get_login_url() falls back to settings.LOGIN_URL.

views.generic.detail.SingleObjectTemplateResponseMixin.get_template_names()

get_template_names() Returns a list of candidate template names. Returns the following list: the value of template_name on the view (if provided) the contents of the template_name_field field on the object instance that the view is operating upon (if available) <app_label>/<model_name><template_name_suffix>.html

views.generic.edit.UpdateView.template_name_suffix

template_name_suffix The UpdateView page displayed to a GET request uses a template_name_suffix of '_form'. For example, changing this attribute to '_update_form' for a view updating objects for the example Author model would cause the default template_name to be 'myapp/author_update_form.html'.

postgres.fields.FloatRangeField

class FloatRangeField(**options) [source] Stores a range of floating point values. Based on a FloatField. Represented by a numrange in the database and a NumericRange in Python.

gis.forms.PolygonField

class PolygonField

admin.InlineModelAdmin.min_num

InlineModelAdmin.min_num This controls the minimum number of forms to show in the inline. See modelformset_factory() for more information. InlineModelAdmin.get_min_num() also allows you to customize the minimum number of displayed forms.