* Update utils.py
verify get_meta isn't none before requesting db_table
* Add passenv to tox.ini
* Fix test_explain in sqlite
* add test that will cause error #226
* try to get around problem with PASSWORD in GitHub actions testing
* fix tests broken not counting with other applications permissions
---------
Co-authored-by: hho6643 <63743025+hho6643@users.noreply.github.com>
Co-authored-by: Andrew Chen Wang <60190294+Andrew-Chen-Wang@users.noreply.github.com>
* Add test settings to sdist. Closes#200.
* Add remaining necessary test files
Co-authored-by: Andrew Chen Wang <60190294+Andrew-Chen-Wang@users.noreply.github.com>
* Fix tox.ini and use exclude for ci.yml
* runtests_urls.py had an issue from using pre-Django 2.2 import of urls
* tox.ini forgot to remove 3.7 from Django 4.0 env
* Use re_path
* Avoid system error in Django test
* Fix read/test_union.py
* Test assertion error for read/test_union
* Fix remaining read/test_intersection test
* Bump version
The `ExtraJoinRestriction` class used by django-taggit lacks the
attributes "rhs" and "lhs".
Thus projects cannot use django-taggit together with cachalot.
Closes: #121
* 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>
* Drop Django 3.0 support
* Extended support for Django 3.0 was ended on April 6, 2021
* Update docs to reflect dropped Django 3.0 version
* Updated links in docs to reflect updated Django docs anchor tag implementation
* Add CACHALOT_ADDITIONAL_TABLES for unmanaged models
- Fixes#182
- For doc purposes, we do not want to use table_names and want to continue using django_table_names from connection.introspection to avoid a query to the db every request.
* Remove system check for Django version
* Closes#175
* Bump version and amend CHANGELOG
* Update with GitHub action CI
* Update README with Python and Django versions
* Limit Django version to 3.2, inclusively.
* Add note on Django constraints to README
* Bump minor version
* Justified by dropping support for dependency versions
* Drop support for Django 2.0-2.1, Python 3.5
* Change CI badge in README to GitHub actions
* Add support for Pymemcache for Django 3.2+
* Add Django 3.2 to test matrix
* Fix MySQL test_explain
* Allow filebased delta leniency in tests
* Allow Subquery in finding more Subqueries (Fixes#156)
* Reverts #157 with proper fix. The initial problem was due to `django.db.models.expressions.Subquery` allowing both QuerySet and sql.Query to be used.
* Fixes Django 3.2 test_subquery and test_invalidate_subquery testing by also checking the lhs
* Fix Django 2.2 Subquery having no query attr
* Fix filebased test time delta
* Fix test_invalidate_having due to new inner_query
* The new inner_query replaces subquery for Django 3.2 where subquery is now a boolean. That's why I initially used that TypeError in _get_tables_from_sql. inner_query looks to be a sql.Query
* Add PyMemcacheCache to supported cache backends
Co-authored-by: Dominik George <nik@naturalnet.de>