redirects.middleware.RedirectFallbackMiddleware.response_gone_class

response_gone_class The HttpResponse class used when a Redirect is not found for the requested path or has a blank new_path value. Defaults to HttpResponseGone.

http.HttpResponse.write()

HttpResponse.write(content) [source] This method makes an HttpResponse instance a file-like object.

db.models.Expression.get_group_by_cols()

get_group_by_cols() Responsible for returning the list of columns references by this expression. get_group_by_cols() should be called on any nested expressions. F() objects, in particular, hold a reference to a column.

db.models.Field.one_to_many

Field.one_to_many Boolean flag that is True if the field has a one-to-many relation, such as a GenericRelation or the reverse of a ForeignKey; False otherwise.

test.runner.DiscoverRunner.run_suite()

DiscoverRunner.run_suite(suite, **kwargs) Runs the test suite. Returns the result produced by the running the test suite.

forms.Field.clean()

Field.clean(value) [source] Although the primary way you’ll use Field classes is in Form classes, you can also instantiate them and use them directly to get a better idea of how they work. Each Field instance has a clean() method, which takes a single argument and either raises a django.forms.ValidationError exception or returns the clean value: >>> from django import forms >>> f = forms.EmailField() >>> f.clean('foo@example.com') 'foo@example.com' >>> f.c

gis.gdal.Field.as_double()

as_double() Returns the value of the field as a double (float): >>> city['Density'].as_double() 874.7

db.models.functions.datetime.TruncYear

class TruncYear(expression, output_field=None, tzinfo=None, **extra) [source] kind = 'year'

http.StreamingHttpResponse.streaming_content

StreamingHttpResponse.streaming_content An iterator of strings representing the content.

views.generic.edit.FormMixin.get_initial()

get_initial() Retrieve initial data for the form. By default, returns a copy of initial.