django1/django/db
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
..
backends Updated Oracle docs links to Oracle 21c. 2022-03-29 09:41:57 +02:00
migrations Refs #32365 -- Made migration writer use datetime.timezone.utc. 2022-03-23 12:43:43 +01:00
models Fixed #33397 -- Corrected resolving output_field for DateField/DateTimeField/TimeField/DurationFields. 2022-03-31 11:05:23 +02:00
__init__.py Prevented initialization of unused database connections. 2022-03-17 07:40:57 +01:00
transaction.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
utils.py Moved ensure_defaults() and prepare_test_settings() logic to ConnectionHandler.configure_settings(). 2022-03-17 07:36:34 +01:00