db.models.Expression.set_source_expressions()

set_source_expressions(expressions) Takes a list of expressions and stores them such that get_source_expressions() can return them.

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

get_source_expressions() Returns an ordered list of inner expressions. For example: >>> Sum(F('foo')).get_source_expressions() [F('foo')]

db.models.Expression.resolve_expression()

resolve_expression(query=None, allow_joins=True, reuse=None, summarize=False, for_save=False) Provides the chance to do any pre-processing or validation of the expression before it’s added to the query. resolve_expression() must also be called on any nested expressions. A copy() of self should be returned with any necessary transformations. query is the backend query implementation. allow_joins is a boolean that allows or denies the use of joins in the query. reuse is a set of reusable joins

db.models.Expression.desc()

desc() Returns the expression ready to be sorted in descending order.

db.models.EmailField

class EmailField(max_length=254, **options) [source] A CharField that checks that the value is a valid email address. It uses EmailValidator to validate the input.

db.models.Expression.contains_aggregate

contains_aggregate Tells Django that this expression contains an aggregate and that a GROUP BY clause needs to be added to the query.

db.models.Expression

class Expression [source] contains_aggregate Tells Django that this expression contains an aggregate and that a GROUP BY clause needs to be added to the query. resolve_expression(query=None, allow_joins=True, reuse=None, summarize=False, for_save=False) Provides the chance to do any pre-processing or validation of the expression before it’s added to the query. resolve_expression() must also be called on any nested expressions. A copy() of self should be returned with any necessary t

db.models.Expression.asc()

asc() Returns the expression ready to be sorted in ascending order.

db.models.Expression.convert_value()

convert_value(self, value, expression, connection, context) A hook allowing the expression to coerce value into a more appropriate type.