django1/django
Luke Plant 40b8a6174f Fixed #33397 -- Corrected resolving output_field for DateField/DateTimeField/TimeField/DurationFields.
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
2022-03-31 11:05:23 +02:00
..
apps Rewrote some references to "master". 2022-03-08 14:50:06 +01:00
conf Optimized lazy wrappers a bit. 2022-03-03 06:19:11 +01:00
contrib Fixed #33397 -- Corrected resolving output_field for DateField/DateTimeField/TimeField/DurationFields. 2022-03-31 11:05:23 +02:00
core Refs #32365 -- Removed internal uses of utils.timezone.utc alias. 2022-03-24 06:29:50 +01:00
db Fixed #33397 -- Corrected resolving output_field for DateField/DateTimeField/TimeField/DurationFields. 2022-03-31 11:05:23 +02:00
dispatch Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
forms Refs #32339 -- Added use_fieldset to Widget. 2022-03-30 16:28:14 +02:00
http Refs #32365 -- Removed internal uses of utils.timezone.utc alias. 2022-03-24 06:29:50 +01:00
middleware Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
template Removed unused Node.__iter__(). 2022-02-16 08:08:46 +01:00
templatetags Refs #32365 -- Removed internal uses of utils.timezone.utc alias. 2022-03-24 06:29:50 +01:00
test Refs #31169 -- Prevented infinite loop in parallel tests with custom test runner when using spawn. 2022-03-17 10:20:13 +01:00
urls Fixed #16406 -- Added ResolveMatch.captured_kwargs and extra_kwargs. 2022-03-29 10:27:40 +02:00
utils Refs #32365 -- Deprecated django.utils.timezone.utc. 2022-03-29 14:47:44 +02:00
views Refs #32365 -- Removed internal uses of utils.timezone.utc alias. 2022-03-24 06:29:50 +01:00
__init__.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
__main__.py Fixed #24857 -- Added "python -m django" entry point. 2015-09-07 19:54:32 -04:00
shortcuts.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00