db.models.ForeignKey.to_field

ForeignKey.to_field The field on the related object that the relation is to. By default, Django uses the primary key of the related object.

auth.password_validation.NumericPasswordValidator

class NumericPasswordValidator [source] Validates whether the password is not entirely numeric.

gis.db.models.GeoQuerySet.area()

GeoQuerySet.area(**kwargs) Deprecated since version 1.9: Use the Area function instead. Returns the area of the geographic field in an area attribute on each element of this GeoQuerySet.

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().

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

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.

Examples of model relationship API usage

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

db.transaction.savepoint_rollback()

savepoint_rollback(sid, using=None) [source] Rolls back the transaction to savepoint sid. These functions do nothing if savepoints aren’t supported or if the database is in autocommit mode. In addition, there’s a utility function:

gis.gdal.GDALRaster

class GDALRaster(ds_input, write=False) The constructor for GDALRaster accepts two parameters. The first parameter defines the raster source, it is either a path to a file or spatial data with values defining the properties of a new raster (such as size and name). If the input is a file path, the second parameter specifies if the raster should be opened with write access. If the input is raw data, the parameters width, height, and srid are required. The following example shows how rasters ca

test.Client.trace()

trace(path, follow=False, secure=False, **extra) [source] Makes a TRACE request on the provided path and returns a Response object. Useful for simulating diagnostic probes. Unlike the other request methods, data is not provided as a keyword parameter in order to comply with RFC 7231#section-4.3.8, which mandates that TRACE requests must not have a body. The follow, secure, and extra arguments act the same as for Client.get().