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
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.