1
0
mirror of https://github.com/django/django.git synced 2024-12-23 09:36:06 +00:00
django/tests/queries
Simon Charette c8b6594305 Fixed #32632, Fixed #32657 -- Removed flawed support for Subquery deconstruction.
Subquery deconstruction support required implementing complex and
expensive equality rules for sql.Query objects for little benefit as
the latter cannot themselves be made deconstructible to their reference
to model classes.

Making Expression @deconstructible and not BaseExpression allows
interested parties to conform to the "expression" API even if they are
not deconstructible as it's only a requirement for expressions allowed
in Model fields and meta options (e.g. constraints, indexes).

Thanks Phillip Cutter for the report.

This also fixes a performance regression in bbf141bcdc.
2021-04-28 12:13:55 +02:00
..
__init__.py
models.py Fixed some queries tests when primary key values are large. 2020-10-27 06:39:52 +01:00
test_bulk_update.py
test_contains.py Fixed #24141 -- Added QuerySet.contains(). 2021-03-06 20:40:29 +01:00
test_db_returning.py
test_explain.py Fixed #32357 -- Dropped support for PostgreSQL 9.6 and PostGIS 2.3. 2021-01-19 12:25:20 +01:00
test_iterator.py
test_q.py Fixed #32632, Fixed #32657 -- Removed flawed support for Subquery deconstruction. 2021-04-28 12:13:55 +02:00
test_qs_combinators.py Fixed #32627 -- Fixed QuerySet.values()/values_list() crash on combined querysets ordered by unannotated columns. 2021-04-12 21:11:40 +02:00
test_query.py Fixed #32632, Fixed #32657 -- Removed flawed support for Subquery deconstruction. 2021-04-28 12:13:55 +02:00
tests.py Used assertCountEqual() in ExcludeTests.test_exclude_subquery(). 2021-04-22 10:47:10 +02:00