django-cachalot/cachalot/tests
Dominik Bartenstein 76d4ab4c8d
Simplify annotation handling by using the flatten method: (#197)
* Simplify annotation handling by using the flatten method:
f42ccdd835/django/db/models/expressions.py (L370)

Handle annotated cases when Subquery is part of the When.

* Before Django 3.2 flatten did not check for existence of flatten in the processed nodes.

* Add type BaseExpression to function "flatten".

* Add test case with annotated Coalesce.

* Add support for annotated raw SQL.

* Remove unnecessary code.

* Use as_sql instead of repr.

* Reorganize code

* Fix var name

* Improve naming: element -> expression

Co-authored-by: Dominik Bartenstein <db@zemtu.com>
Co-authored-by: Andrew Chen Wang <60190294+Andrew-Chen-Wang@users.noreply.github.com>
2021-08-21 20:55:01 -04:00
..
migrations Squashed commit of the following: 2020-08-10 16:49:46 -04:00
__init__.py Multiple Python optimisations. 2017-06-07 08:59:35 +02:00
api.py Add Django 3.2 Support and drop error dependency check (#181) 2021-05-13 00:27:14 -04:00
db_router.py Tests all django.contrib.postgres reading possibilities + makes caching work for most array and hstore queries. 2015-10-04 22:14:18 +02:00
debug_toolbar.py Version 2.2.0 (#146) 2020-02-12 00:52:12 -05:00
loaddata_fixture.json Adds a test to find if the cache is invalidated after flush and loaddata commands. 2014-10-21 23:10:58 +02:00
models.py Squashed commit of the following: 2020-08-10 16:49:46 -04:00
multi_db.py Squashed commit of the following: 2020-08-10 16:49:46 -04:00
postgres.py Squashed commit of the following: 2020-08-10 16:49:46 -04:00
read.py Simplify annotation handling by using the flatten method: (#197) 2021-08-21 20:55:01 -04:00
settings.py Add CACHALOT_ONLY_CACHABLE_APPS & CACHALOT_UNCACHABLE_APPS (Fixes #186) (#187) 2021-05-24 22:46:00 -04:00
signals.py Drop Python 2.7 and Dj 1.11 2020-06-18 09:28:00 -04:00
test_utils.py Add Django 3.2 Support and drop error dependency check (#181) 2021-05-13 00:27:14 -04:00
thread_safety.py Drop Python 2.7 and Dj 1.11 2020-06-18 09:28:00 -04:00
transaction.py Drop Python 2.7 and Dj 1.11 2020-06-18 09:28:00 -04:00
write.py Add Django 3.2 Support and drop error dependency check (#181) 2021-05-13 00:27:14 -04:00