template.Context.setdefault()

Context.setdefault(key, default=None) New in Django 1.9. If key is in the context, returns its value. Otherwise inserts key with a value of default and returns default.

forms.Widget.value_omitted_from_data()

value_omitted_from_data(data, files, name) [source] New in Django 1.10.2. Given data and files dictionaries and this widget’s name, returns whether or not there’s data or files for the widget. The method’s result affects whether or not a field in a model form falls back to its default. Special cases are CheckboxInput and CheckboxSelectMultiple, which always return False because an unchecked checkbox doesn’t appear in the data of an HTML form submission, so it’s unknown whether or not the u

sessions.middleware.SessionMiddleware

class SessionMiddleware [source] Enables session support. See the session documentation.

apps.AppConfig.name

AppConfig.name Full Python path to the application, e.g. 'django.contrib.admin'. This attribute defines which application the configuration applies to. It must be set in all AppConfig subclasses. It must be unique across a Django project.

db.models.Transform.bilateral

bilateral A boolean indicating whether this transformation should apply to both lhs and rhs. Bilateral transformations will be applied to rhs in the same order as they appear in the lookup expression. By default it is set to False. For example usage, see Custom Lookups.

utils.encoding.smart_text()

smart_text(s, encoding='utf-8', strings_only=False, errors='strict') [source] Returns a text object representing s – unicode on Python 2 and str on Python 3. Treats bytestrings using the encoding codec. If strings_only is True, don’t convert (some) non-string-like objects.

forms.NumberInput

class NumberInput [source] Text input: <input type="number" ...> Beware that not all browsers support entering localized numbers in number input types. Django itself avoids using them for fields having their localize property set to True.

auth.models.User.last_name

last_name Optional. 30 characters or fewer.

gis.gdal.OGRGeometry.difference()

difference() Returns the region consisting of the difference of this geometry and the other, as a new OGRGeometry object.

views.generic.dates.BaseDateListView.date_list_period

date_list_period Optional A string defining the aggregation period for date_list. It must be one of 'year' (default), 'month', or 'day'.