views.generic.dates.BaseDateListView.get_dated_queryset()

get_dated_queryset(**lookup) [source] Returns a queryset, filtered using the query arguments defined by lookup. Enforces any restrictions on the queryset, such as allow_empty and allow_future.

db.models.ManyToManyField.related_query_name

ManyToManyField.related_query_name Same as ForeignKey.related_query_name.

template.response.SimpleTemplateResponse.is_rendered

SimpleTemplateResponse.is_rendered A boolean indicating whether the response content has been rendered.

utils.safestring.SafeString

class SafeString A str subclass that has been specifically marked as “safe” (requires no further escaping) for HTML output purposes. This is SafeBytes on Python 2 and SafeText on Python 3.

auth.views.redirect_to_login()

redirect_to_login(next, login_url=None, redirect_field_name='next') Redirects to the login page, and then back to another URL after a successful login. Required arguments: next: The URL to redirect to after a successful login. Optional arguments: login_url: The URL of the login page to redirect to. Defaults to settings.LOGIN_URL if not supplied. redirect_field_name: The name of a GET field containing the URL to redirect to after log out. Overrides next if the given GET parameter is pass

db.models.Model.clean_fields()

Model.clean_fields(exclude=None) [source] This method will validate all fields on your model. The optional exclude argument lets you provide a list of field names to exclude from validation. It will raise a ValidationError if any fields fail validation. The second step full_clean() performs is to call Model.clean(). This method should be overridden to perform custom validation on your model.

forms.Form.initial

Form.initial Use initial to declare the initial value of form fields at runtime. For example, you might want to fill in a username field with the username of the current session. To accomplish this, use the initial argument to a Form. This argument, if given, should be a dictionary mapping field names to initial values. Only include the fields for which you’re specifying an initial value; it’s not necessary to include every field in your form. For example: >>> f = ContactForm(initia

auth.mixins.AccessMixin.redirect_field_name

redirect_field_name Default return value for get_redirect_field_name(). Defaults to "next".

sites.middleware.CurrentSiteMiddleware

class CurrentSiteMiddleware [source] Adds the site attribute representing the current site to every incoming HttpRequest object. See the sites documentation.

admin.models.LogEntry.get_change_message()

LogEntry.get_change_message() New in Django 1.10. Formats and translates change_message into the current user language. Messages created before Django 1.10 will always be displayed in the language in which they were logged.