summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
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-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-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 strip_tags test file to lorem ipsum.Adam Johnson
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-07Refs #33562 -- Added tests HttpRequest.get_signed_cookie() with timedeltas.Luke Plant
2022-03-04Fixed #29865 -- Added logical XOR support for Q() and querysets.Ryan Heard
2022-03-04Refs #11293 -- Added test for filtering aggregates with negated & operator.Mariusz Felisiak
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.
2022-03-02Refs #10188 -- Added tests for BadHeaderErrors when HTTP header with ↵Keryn Knight
newlines cannot be encoded/decoded.
2022-03-01Fixed #33547 -- Fixed error when rendering invalid inlines with readonly ↵Mariusz Felisiak
fields in admin. Regression in de95c826673be9ea519acc86fd898631d1a11356. Thanks David Glenck for the report.
2022-02-28Fixed #33524 -- Allowed overriding empty_label for ForeignKey in ↵Hrushikesh Vaidya
ModelAdmin.radio_fields.
2022-02-25Added test for removing through model from ManyToManyField.Mariusz Felisiak
2022-02-25Fixed #31486 -- Deprecated passing unsaved objects to related filters.Albert Defler
Co-Authored-By: Hasan Ramezani <hasan.r67@gmail.com>
2022-02-25Fixed #33267 -- Added link to related item to related widget wrapper in admin.Shubh1815
2022-02-24Refs #7488, Refs #19524 -- Removed obsolete ↵Albert Defler
ModelInheritanceTest.test_issue_7488() test. Obsolete since e9c24bef74e55729b190cf07e0ac452aa4c86fcd.
2022-02-24Fixed #33539 -- Fixed spaces in WITH SQL for indexes on PostgreSQL.Anders Kaseorg
2022-02-23Fixed #28889 -- Prevented double submission of admin forms.mgaligniana
Added a JavaScript confirm() to catch double-submissions, when the change form has already been submitted. Thanks to Adam Johnson, Claude Paroz, Keryn Knight, and Thibaud Colas for review.
2022-02-23Refs #33476 -- Added warning to optimizemigration/squashmigrations commands ↵Mariusz Felisiak
when black cannot be applied.
2022-02-22Fixed #27844 -- Added optimizemigration management command.David Wobrock
2022-02-22Removed redundant QuerySet.all() calls in docs and tests.Nick Pope
Most QuerySet methods are mapped onto the Manager and, in general, it isn't necessary to call .all() on the manager.
2022-02-22Fixed #19580 -- Unified behavior of reverse foreign key and many-to-many ↵Albert Defler
relations for unsaved instances.
2022-02-22Refs #33517 -- Prevented __second lookup from returning fractional seconds ↵nabil-rady
on PostgreSQL.
2022-02-21Fixed #20296 -- Prevented mark_safe() from evaluating lazy objects.Theo Alexiou
2022-02-21Refs #33526 -- Made ↵Mariusz Felisiak
CSRF_COOKIE_SECURE/SESSION_COOKIE_SECURE/SESSION_COOKIE_HTTPONLY don't pass on truthy values.
2022-02-21Fixed #33518 -- Added RemovedAfterNextVersionWarning.saeedblanchette
2022-02-19Refs #33173 -- Fixed MailTests.test_backend_arg() on Windows and Python 3.11+.David Smith
2022-02-18Fixed #33379 -- Added minimum database version checks.Hasan Ramezani
Thanks Tim Graham for the review.
2022-02-18Fixed #33514 -- Added fallbacks to subsequent language codes in Select2 ↵My-Name-Is-Nabil
translations.
2022-02-17Refs #28358 -- Fixed infinite recursion in LazyObject.__getattribute__().Matthias Kestenholz
Regression in 97d7990abde3fe4b525ae83958fd0b52d6a1d13f. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> Co-authored-by: Theo Alexiou <theofilosalexiou@gmail.com>
2022-02-16Fixed #33515 -- Prevented recreation of migration for ManyToManyField to ↵Mariusz Felisiak
lowercased swappable setting. Thanks Chris Lee for the report. Regression in 43289707809c814a70f0db38ca4f82f35f43dbfd. Refs #23916.
2022-02-16Fixed #28358 -- Prevented LazyObject from mimicking nonexistent attributes.Theo Alexiou
Thanks Sergey Fedoseev for the initial patch.
2022-02-15Refs #31407 -- Handled potential exception in test cleanup.Carlton Gibson
The test view may not be called when running the tests with --parallel=2 or greater. Catch the AttributeError for this case.
2022-02-15Refs #33348 -- Made SimpleTestCase.assertFormError() raise ValueError when ↵Baptiste Mispelon
"field" is passed without "form_index".
2022-02-15Refs #33348 -- Fixed SimpleTestCase.assertFormError() error message raised ↵Mariusz Felisiak
for unbound forms.
2022-02-15Refs #33348 -- Improved messages raised by ↵Baptiste Mispelon
SimpleTestCase.assertFormError()/assertFormsetErrors(). This makes messages use BaseFormSet/BaseForm.__repr__() instead of context, and adds the _assert_form_error() helper.