mirror of
https://github.com/django/django.git
synced 2024-12-22 17:16:24 +00:00
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_filter_argument.py | ||
tests.py |