Update dependency django-cte to v2
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
django-cte | dependencies | major |
^1.3.2 -> ^2.0.0
|
Release Notes
dimagi/django-cte (django-cte)
v2.0.0
-
API overhaul
-
With
has been renamed toCTE
.With
is deprecated and will be removed in a future version of django-cte. -
with_cte
was moved from aCTEQuerySet
method to a stand-alone function. -
CTEManager
andCTEQuerySet
are deprecated and should be removed from code that uses them, as they are no longer necessary. They will be removed in a future version of django-cte. - Reference the documentation for new usage patterns.
-
-
BREAKING: On Django 5.2 and later, the name specified in
.values('fk_name')
must match the name of the same column referenced bycte.col.fk_name
—for example, in a join condition. It may end with_id
or not, but the references must be consistent. This change may require previously working CTE queries to be adjusted when migrating to Django 5.2 (example). - Django 5.0 is EOL and no longer supported.
- Fixed broken
UNION
and other "combined" queries. - Internally, the library has been updated to simplify the code and remove workarounds for old and unsupported versions of Django.
- Modernized development tooling
- Replaced nosetests with pytest.
- Replaced setup.py with pyproject.toml
- Replaced flake8 with ruff.
- Replaced venv/pip with uv.
- Improved Github Actions automation, including automated releases.
- Dev versions of django-cte are now published on PyPI, making them easier to test and use before an official release is cut.
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.