db.models.ExpressionWrapper

class ExpressionWrapper(expression, output_field) [source]

ExpressionWrapper simply surrounds another expression and provides access to properties, such as output_field, that may not be available on other expressions. ExpressionWrapper is necessary when using arithmetic on F() expressions with different types as described in Using F() with annotations.

doc_Django
2016-10-09 18:35:20
Comments
Leave a Comment

Please login to continue.