summaryrefslogtreecommitdiff
path: root/django
AgeCommit message (Collapse)Author
2022-04-06Fixed #33471 -- Made AlterField operation a noop when changing "choices".sarahboyce
This also allows customizing attributes of fields that don't affect a column definition.
2022-04-06Refs #31617 -- Added an id for helptext in admin forms.David Smith
2022-04-06Fixed #33348 -- Changed ↵Baptiste Mispelon
SimpleTestCase.assertFormError()/assertFormsetErrors() to take form/formset. Instead of taking a response object and a context name for the form/formset, the two methods now take the object directly.
2022-04-04Fixed #33605 -- Fixed migration crash when altering RegexValidator to ↵Brian Helba
pre-compiled regular expression.
2022-04-01Fixed #33613 -- Made createsuperuser detect uniqueness of USERNAME_FIELD ↵Lucidiot
when using Meta.constraints.
2022-03-31Fixed #33397 -- Corrected resolving output_field for ↵Luke Plant
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-31Refs #33397 -- Added register_combinable_fields().Luke Plant
2022-03-31Removed unnecessary Query.get_loaded_field_names_cb() and ↵Mariusz Felisiak
Query.deferred_to_data()'s callback argument.
2022-03-31Refs #24020 -- Removed redundant Query.get_loaded_field_names().Mariusz Felisiak
get_loaded_field_names() is no longer called in multiple places (see 0c7633178fa9410f102e4708cef979b873bccb76) and it's redundant with SQLCompiler.deferred_to_columns().
2022-03-31Updated select_related_descend() comment.Mariusz Felisiak
Outdated since 0c7633178fa9410f102e4708cef979b873bccb76.
2022-03-30Refs #32339 -- Added use_fieldset to Widget.David
2022-03-30Fixed #33598 -- Reverted "Removed unnecessary reuse_with_filtered_relation ↵Mariusz Felisiak
argument from Query methods." Thanks lind-marcus for the report. This reverts commit 0c71e0f9cfa714a22297ad31dd5613ee548db379. Regression in 0c71e0f9cfa714a22297ad31dd5613ee548db379.
2022-03-29Refs #32365 -- Deprecated django.utils.timezone.utc.Carlton Gibson
2022-03-29Fixed #16406 -- Added ResolveMatch.captured_kwargs and extra_kwargs.Alokik Vijay
Thanks Florian Apolloner for the review and implementation idea.
2022-03-29Updated Oracle docs links to Oracle 21c.Mariusz Felisiak
2022-03-29Fixed #15619 -- Deprecated log out via GET requests.René Fleschenberg
Thanks Florian Apolloner for the implementation idea. Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2022-03-25Fixed #7497 -- Allowed overriding the order of apps and models in admin.adontz
2022-03-24Refs #15619 -- Logged out with POST requests in admin.Mariusz Felisiak
2022-03-24Refs #32365 -- Removed internal uses of utils.timezone.utc alias.Carlton Gibson
Remaining test case ensures that uses of the alias are mapped canonically by the migration writer.
2022-03-23Fixed #33569 -- Added SECURE_PROXY_SSL_HEADER support for list of protocols ↵Thomas Schmidt
in the header value.
2022-03-23Refs #32365 -- Made migration writer use datetime.timezone.utc.Carlton Gibson
2022-03-22Refs #30581 -- Fixed DatabaseFeatures.bare_select_suffix on MySQL < 8 and ↵Gagaro
MariaDB < 10.4.
2022-03-21Fixed #33592 -- Fixed "View on Site" links in custom admin site.Stefan Wehrmeyer
2022-03-18Fixed #33582 -- Fixed deserializing natural keys with foreing key ↵François Granade
dependencies in a multiple database setup.
2022-03-17Refs #31169 -- Prevented infinite loop in parallel tests with custom test ↵David Smith
runner when using spawn. Regression in 3b3f38b3b09b0f2373e51406ecb8c9c45d36aebc. Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2022-03-17Prevented initialization of unused database connections.Florian Apolloner
2022-03-17Moved ensure_defaults() and prepare_test_settings() logic to ↵Florian Apolloner
ConnectionHandler.configure_settings().
2022-03-17Removed usage of django.db.utils.ConnectionHandler.databases.Florian Apolloner
2022-03-16Made BaseConstraint importable from django.db.models.Gagaro
2022-03-16Fixed #33580 -- Fixed crash when checking support for terminal colors on Wine.jochemfranken
Regression in f1585c54d0242d71cdc63421f751528472b1c9c2.
2022-03-16Used sets for field names for exclusion.Gagaro
They are used only for containment checks.
2022-03-16Refs #30581 -- Allowed sql.Query to be used without model.Gagaro
2022-03-16Fixed #33577 -- Confirmed support for GDAL 3.4.Mariusz Felisiak
2022-03-15Fixed #31169 -- Adapted the parallel test runner to use spawn.David Smith
Co-authored-by: Valz <ahmadahussein0@gmail.com> Co-authored-by: Nick Pope <nick@nickpope.me.uk>
2022-03-15Removed unnecessary _connector from Q construction in get_for_models().Mariusz Felisiak
Q._connector defaults to Q.AND. Follow up to 859a87d873ce7152af73ab851653b4e1c3ffea4c.
2022-03-15Removed outdated handling of length parameter to If-Modified-Since header.Mariusz Felisiak
The length parameter is not described in RFC-7232 and it's against HTTP/1.0 and HTTP/1.1 specifications. It was an old and unofficial extension set by some ancient versions of IE.
2022-03-15Fixed #33552 -- Fixed JSONField has key lookups with numeric keys on ↵Sage Abdullah
MariaDB, MySQL, Oracle, and SQLite.
2022-03-14Fixed #31357 -- Fixed get_for_models() crash for stale content types when ↵Biel Frontera
model with the same name exists in another app.
2022-03-11Fixed #33572 -- Implemented CreateModel/AlterModelManagers reduction.Adam Johnson
2022-03-11Fixed #33571 -- Fixed static serving views crash when If-Modified-Since is ↵Collin Anderson
empty. Regression in d6aff369ad33457ae2355b5b210faf1c4890ff35.
2022-03-10Fixed #33561 -- Allowed synchronization of user attributes in RemoteUserBackend.Adrian Torres
2022-03-09Fixed #33567 -- Avoided setting default text/html content type on responses.Claude Paroz
2022-03-08Rewrote some references to "master".Adam Johnson
Following d9a266d657f66b8c4fa068408002a4e3709ee669.
2022-03-08Refs #33173 -- Used locale.getlocale() instead of getdefaultlocale().Mariusz Felisiak
locale.getdefaultlocale() was deprecated in Python 3.11, see https://bugs.python.org/issue46659.
2022-03-08Fixed #33563 -- Fixed contenttype reverse data migration crash with a ↵Hameed Gifford
multiple databases setup.
2022-03-07Refs #33562 -- Made HttpResponse.set_cookie() raise ValueError when both ↵Luke Plant
"expires" and "max_age" are passed. This fixes the case where you might pass set_cookie(expires=val, max_age=val) and max_age is silently ignored.
2022-03-07Fixed #33562 -- Made HttpResponse.set_cookie() support timedelta for the ↵Luke Plant
max_age argument.
2022-03-04Fixed #29865 -- Added logical XOR support for Q() and querysets.Ryan Heard
2022-03-04Refs #31169 -- Prevented infinite loop in tests on failures.Mariusz Felisiak
Regression in ae91ecf6a1037fb67d14841b66ac19d4c2ccc4ac.
2022-03-04Refs #33446 -- Allowed variable whitespace in CSS source map references.Adam Johnson
Follow up to dc8bb35e39388d41b1f38b6c5d0181224e075f16. The Webpack default is to output CSS source map comments like `/*# sourceMappingURL=main.css.map*/`. Also, Chromium allows tabs.