sessions.backends.base.SessionBase.__contains__()

__contains__(key) Example: 'fav_color' in request.session

forms.Widget.id_for_label()

id_for_label(self, id_) [source] Returns the HTML ID attribute of this widget for use by a <label>, given the ID of the field. Returns None if an ID isn’t available. This hook is necessary because some widgets have multiple HTML elements and, thus, multiple IDs. In that case, this method should return an ID value that corresponds to the first ID in the widget’s tags.

forms.SplitDateTimeWidget

class SplitDateTimeWidget [source] Wrapper (using MultiWidget) around two widgets: DateInput for the date, and TimeInput for the time. Must be used with SplitDateTimeField rather than DateTimeField. SplitDateTimeWidget has two optional attributes: date_format Similar to DateInput.format time_format Similar to TimeInput.format

http.HttpResponse.seekable()

HttpResponse.seekable() New in Django 1.10: Always False. This method makes an HttpResponse instance a stream-like object.

admin.models.LogEntry.user

LogEntry.user The user (an AUTH_USER_MODEL instance) who performed the action.

Conditional View Processing

HTTP clients can send a number of headers to tell the server about copies of a resource that they have already seen. This is commonly used when retrieving a Web page (using an HTTP GET request) to avoid sending all the data for something the client has already retrieved. However, the same headers can be used for all HTTP methods (POST, PUT, DELETE, etc.). For each page (response) that Django sends back from a view, it might provide two HTTP headers: the ETag header and the Last-Modified header.

gis.gdal.Field.width

width Returns the width of this field: >>> city['Name'].width 80

sessions.backends.base.SessionBase.keys()

keys()

gis.db.models.functions.ForceRHR

class ForceRHR(expression, **extra) Availability: PostGIS Accepts a single geographic field or expression and returns a modified version of the polygon/multipolygon in which all of the vertices follow the right-hand rule.

forms.NullBooleanField

class NullBooleanField(**kwargs) [source] Default widget: NullBooleanSelect Empty value: None Normalizes to: A Python True, False or None value. Validates nothing (i.e., it never raises a ValidationError).