views.generic.edit.DeletionMixin.get_success_url()

get_success_url() Returns the url to redirect to when the nominated object has been successfully deleted. Returns success_url by default.

Examples of model relationship API usage

Many-to-many relationships Many-to-one relationships One-to-one relationships

db.models.BigAutoField

class BigAutoField(**options) [source] New in Django 1.10. A 64-bit integer, much like an AutoField except that it is guaranteed to fit numbers from 1 to 9223372036854775807.

db.models.Min

class Min(expression, output_field=None, **extra) [source] Returns the minimum value of the given expression. Default alias: <field>__min Return type: same as input field, or output_field if supplied

test.Client.patch()

patch(path, data='', content_type='application/octet-stream', follow=False, secure=False, **extra) [source] Makes a PATCH request on the provided path and returns a Response object. Useful for testing RESTful interfaces. The follow, secure and extra arguments act the same as for Client.get().

core.checks.Info

class Info(msg, hint=None, obj=None, id=None) [source]

core.files.images.ImageFile.width

width Width of the image in pixels.

gis.gdal.Point.x

x Returns the X coordinate of this point: >>> OGRGeometry('POINT (1 2)').x 1.0

gis.gdal.OGRGeometry.contains()

contains(other) Returns True if this geometry contains the other, otherwise returns False.

test.TransactionTestCase.multi_db

TransactionTestCase.multi_db Django sets up a test database corresponding to every database that is defined in the DATABASES definition in your settings file. However, a big part of the time taken to run a Django TestCase is consumed by the call to flush that ensures that you have a clean database at the start of each test run. If you have multiple databases, multiple flushes are required (one for each database), which can be a time consuming activity – especially if your tests don’t need to