mirror of https://github.com/django/django.git
40b8a6174f
This includes refactoring of CombinedExpression._resolve_output_field() so it no longer uses the behavior inherited from Expression of guessing same output type if argument types match, and instead we explicitly define the output type of all supported operations. This also makes nonsensical operations involving dates (e.g. date + date) raise a FieldError, and adds support for automatically inferring output_field for cases such as: * date - date * date + duration * date - duration * time + duration * time - time |
||
---|---|---|
.. | ||
__init__.py | ||
models.py | ||
test_queryset_values.py | ||
tests.py |