summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2020-08-28Refs #31956 -- Added test for ordering by JSONField with a custom decoder.Mariusz Felisiak
2020-08-28Fixed #31954 -- Fixed migration optimization for MTI model creation with ↵Koen De Wit
parent model with mixed case app label.
2020-08-28Refs #31928 -- Added various middlewares tests for detecting when ↵Kevin Michel
get_response is coroutine.
2020-08-28Fixed #31928 -- Fixed detecting an async get_response in various middlewares.Kevin Michel
SecurityMiddleware and the three cache middlewares were not calling super().__init__() during their initialization or calling the required MiddlewareMixin._async_check() method. This made the middlewares not properly present as coroutine and confused the middleware chain when used in a fully async context. Thanks Kordian Kowalski for the report.
2020-08-28Refs #26601 -- Added various middlewares tests for deprecation of passing ↵Kevin Michel
None as get_response.
2020-08-28Added tests for cache middlewares constructors.Kevin Michel
2020-08-26Fixed #31936 -- Fixed __in lookup on key transforms for JSONField.Mariusz Felisiak
This resolves an issue on databases without a native JSONField (MariaDB, MySQL, SQLite, Oracle), where values must be wrapped. Thanks Sébastien Pattyn for the report.
2020-08-26Fixed #31942 -- Made settings cleansing work with dictionary settings with ↵Jeremy Lainé
non-string keys.
2020-08-26Fixed #31918 -- Allowed QuerySet.in_bulk() to fetch on a single distinct field.Kaustubh
2020-08-26Fixed #31905 -- Made MiddlewareMixin call ↵Michael Galler
process_request()/process_response() with thread sensitive. Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
2020-08-24Fixed #24533 -- Dropped PostgreSQL sequence and Oracle identity when ↵Tim Graham
migrating away from AutoField.
2020-08-24Refs #30897 -- Added test for WAL option to Queryset.explain() on PostgreSQL ↵Nick Pope
13+.
2020-08-24Fixed #31877 -- Reverted "Fixed #19878 -- Deprecated TemplateView passing ↵Mariusz Felisiak
URL kwargs into context." This reverts commit 4ed534758cb6a11df9f49baddecca5a6cdda9311.
2020-08-24Refs #31877 -- Reverted "Fixes #31877 -- Used lazy() for TemplateView kwarg ↵Mariusz Felisiak
deprecation warning." This reverts commit 20799cc0a6d98816b9ef0577e24691bd26b80d7d.
2020-08-24Fixed #31907 -- Fixed missing validate_key() calls in cache backends.Nick Pope
2020-08-24Refs #31907 -- Added cache key validation tests for cache operations.Nick Pope
2020-08-24Added assertions for the results of migrating an integer pk to AutoField.Tim Graham
2020-08-19Fixed #31895 -- Fixed crash when decoding invalid session data.Mariusz Felisiak
Thanks Matt Hegarty for the report. Regression in d4fff711d4c97356bd6ba1273d2a5e349326eb5f.
2020-08-19Fixed #31902 -- Fixed crash of ExclusionConstraint on expressions with params.Maxim Petrov
2020-08-18Refs #9061 -- Allowed GenericInlineFormSet to disable deleting extra forms.Mariusz Felisiak
Follow up to 162765d6c3182e36095d29543e21b44b908625fc.
2020-08-18Refs #20347 -- Allowed customizing the maximum number of instantiated forms ↵Mariusz Felisiak
in generic_inlineformset_factory(). Follow up to 433dd737f94b09043f64b873b0ac067b3f97364b.
2020-08-17Fixed #31888 -- Avoided module-level MySQL queries in tests.Ahmad A. Hussein
2020-08-14Fixed #31826 -- Made AlterField operation a noop when adding db_column.Iuri de Silvio
AlterField operation with adding a db_column is a noop if the column name is not changed.
2020-08-14Fixed #31878 -- Made createsuperuser respect --database option in default ↵Yan Mitrofanov
usernames.
2020-08-14Fixed typo in tests/auth_tests/test_management.py docstring.Yan Mitrofanov
2020-08-13Refs #31811 -- Added optional timing outputs to the test runner.Ahmad A. Hussein
2020-08-13Fixed #31792 -- Made Exists() reuse QuerySet.exists() optimizations.Simon Charette
The latter is already optimized to limit the number of results, avoid selecting unnecessary fields, and drop ordering if possible without altering the semantic of the query.
2020-08-13Fixed #31825 -- Made RenameField operation a noop for fields with db_column.Iuri de Silvio
2020-08-13Fixes #31877 -- Used lazy() for TemplateView kwarg deprecation warning.Adam Johnson
SimpleLazyObjects cause a crash when filtering. Thanks Tim L. White for the report. Regression in 4ed534758cb6a11df9f49baddecca5a6cdda9311.
2020-08-12Fixed #31382 -- Made Model.save(update_fields=...) raise ValueError on ↵Pat Garcia
non-concrete fields.
2020-08-12Fixed #31863 -- Prevented mutating model state by copies of model instances.Gert Burger
Regression in bfb746f983aa741afa3709794e70f1e0ab6040b5.
2020-08-11Fixed #21181 -- Added Collate database function.Tom Carrick
Thanks Simon Charette for reviews.
2020-08-11Fixed #31866 -- Fixed locking proxy models in QuerySet.select_for_update(of=()).Daniel Hillier
2020-08-11Fixed #31865 -- Adjusted admin nav sidebar template to reduce debug logging.Carlton Gibson
Thanks to Mariusz Felisiak for review.
2020-08-11Refs #31180 -- Fixed unreachable assertions in apps tests.Mariusz Felisiak
2020-08-10Fixed #31870 -- Fixed crash when populating app registry with empty or ↵Iuri de Silvio
without apps module. Regression in 3f2821af6bc48fa8e7970c1ce27bc54c3172545e.
2020-08-08Fixed #31831 -- Fixed migration operations ordering when adding ↵Iuri de Silvio
order_with_respect_to and constraints/indexes.
2020-08-08Refs #31831 -- Added autodector test for unique/index_together on _order field.Iuri de Silvio
2020-08-07Fixed #31864 -- Fixed encoding session data during transition to Django 3.1.Mariusz Felisiak
Thanks אורי for the report.
2020-08-07Used mock.Mock() in SMTPBackendTests.Konstantin Alekseev
Using bool caused mypy typecheck failures.
2020-08-06Fixed #25513 -- Extracted admin pagination to Paginator.get_elided_page_range().Nick Pope
2020-08-06Refs #25513 -- Fixed admin pagination elision bounds.Nick Pope
It doesn't make sense to elide a single page number which could be a clickable link to that page. We only want to elide two or more pages.
2020-08-06Refs #25513 -- Adjusted admin pagination to be 1-indexed.Nick Pope
2020-08-05Fixed #26977 -- Made abstract models raise TypeError when instantiating.Jacob Walls
2020-08-04Fixed #31842 -- Added DEFAULT_HASHING_ALGORITHM transitional setting.Mariusz Felisiak
It's a transitional setting helpful in migrating multiple instance of the same project to Django 3.1+. Thanks Markus Holtermann for the report and review, Florian Apolloner for the implementation idea and review, and Carlton Gibson for the review.
2020-08-01Refs #27468 -- Fixed TestSigner.test_dumps_loads_legacy_signature.Mariusz Felisiak
Added in 1d6fdca557e674b9a789b51caadca8985e588492.
2020-07-31Refs #27468 -- Added tests and release notes for signing.dumps()/loads() ↵Mariusz Felisiak
changes. Follow up to 71c4fb7beb8e3293243140e4bd74e53989196440.
2020-07-31Fixed #27719 -- Added QuerySet.alias() to allow creating reusable aliases.Alexandr Tatarinov
QuerySet.alias() allows creating reusable aliases for expressions that don't need to be selected but are used for filtering, ordering, or as a part of complex expressions. Thanks Simon Charette for reviews.
2020-07-31Refs #27996 -- Fixed postgres_tests crash if not running with PostgreSQL.Mariusz Felisiak
2020-07-30Bumped minimum isort version to 5.1.0.David Smith
Fixed inner imports per isort 5. isort 5.0.0 to 5.1.0 was unstable.