db.models.Expression.reverse_ordering()

reverse_ordering() Returns self with any modifications required to reverse the sort order within an order_by call. As an example, an expression implementing NULLS LAST would change its value to be NULLS FIRST. Modifications are only required for expressions that implement sort order like OrderBy. This method is called when reverse() is called on a queryset.

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:

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