module documentation

Undocumented

Class ErrorDict A collection of errors that knows how to display itself in various formats.
Class ErrorList A collection of errors that knows how to display itself in various formats.
Class RenderableErrorMixin Undocumented
Class RenderableFormMixin No class docstring; 4/4 methods documented
Class RenderableMixin Undocumented
Function flatatt Convert a dictionary of attributes to a single string. The returned string will contain a leading space followed by key="value", XML-style pairs. In the case of a boolean value, the key will appear without a value...
Function from_current_timezone When time zone support is enabled, convert naive datetimes entered in the current time zone to aware datetimes.
Function pretty_name Convert 'first_name' to 'First name'.
Function to_current_timezone When time zone support is enabled, convert aware datetimes to naive datetimes in the current time zone for display.
Constant DEFAULT_TEMPLATE_DEPRECATION_MSG Undocumented
def flatatt(attrs): (source)

Convert a dictionary of attributes to a single string. The returned string will contain a leading space followed by key="value", XML-style pairs. In the case of a boolean value, the key will appear without a value. It is assumed that the keys do not need to be XML-escaped. If the passed dictionary is empty, then return an empty string. The result is passed through 'mark_safe' (by way of 'format_html_join').

def from_current_timezone(value): (source)

When time zone support is enabled, convert naive datetimes entered in the current time zone to aware datetimes.

def pretty_name(name): (source)

Convert 'first_name' to 'First name'.

def to_current_timezone(value): (source)

When time zone support is enabled, convert aware datetimes to naive datetimes in the current time zone for display.

DEFAULT_TEMPLATE_DEPRECATION_MSG = (source)

Undocumented

Value
'The "default.html" templates for forms and formsets will be removed. These were
 proxies to the equivalent "table.html" templates, but the new "div.html" templa
tes will be the default from Django 5.0. Transitional renderers are provided to 
allow you to opt-in to the new output style now. See https://docs.djangoproject.
com/en/%s/releases/4.1/ for more details'%get_docs_version()