views.generic.dates.BaseDateListView.get_date_list_period()

get_date_list_period() [source] Returns the aggregation period for date_list. Returns date_list_period by default.

utils.encoding.iri_to_uri()

iri_to_uri(iri) [source] Convert an Internationalized Resource Identifier (IRI) portion to a URI portion that is suitable for inclusion in a URL. This is the algorithm from section 3.1 of RFC 3987#section-3.1. However, since we are assuming input is either UTF-8 or unicode already, we can simplify things a little from the full method. Takes an IRI in UTF-8 bytes and returns ASCII bytes containing the encoded result.

gis.widgets.BaseGeometryWidget.map_height

BaseGeometryWidget.map_height

middleware.locale.LocaleMiddleware.response_redirect_class

LocaleMiddleware.response_redirect_class Defaults to HttpResponseRedirect. Subclass LocaleMiddleware and override the attribute to customize the redirects issued by the middleware.

views.generic.dates.BaseTodayArchiveView

class BaseTodayArchiveView [source]

db.models.Transform.output_field

output_field Defines the class this transformation outputs. It must be a Field instance. By default is the same as its lhs.output_field.

contenttypes.models.ContentType.get_object_for_this_type()

ContentType.get_object_for_this_type(**kwargs) Takes a set of valid lookup arguments for the model the ContentType represents, and does a get() lookup on that model, returning the corresponding object.

utils.html.format_html()

format_html(format_string, *args, **kwargs) [source] This is similar to str.format(), except that it is appropriate for building up HTML fragments. All args and kwargs are passed through conditional_escape() before being passed to str.format(). For the case of building up small HTML fragments, this function is to be preferred over string interpolation using % or str.format() directly, because it applies escaping to all arguments - just like the template system applies escaping by default. So

gis.gdal.Feature.index

index A method that returns the index of the given field name. This will be the same for all features in a given layer: >>> city.index('Population') 1

auth.models.AbstractBaseUser.get_session_auth_hash()

get_session_auth_hash() Returns an HMAC of the password field. Used for Session invalidation on password change.