|
1 | 1 | # Django CTE change log
|
2 | 2 |
|
| 3 | +## 2.0.0 - 2025-06-16 |
| 4 | + |
| 5 | +- **API overhaul** |
| 6 | + - `With` has been renamed to `CTE`. `With` is deprecated and will be removed |
| 7 | + in a future version of django-cte. |
| 8 | + - `with_cte` was moved from a `CTEQuerySet` method to a stand-alone function. |
| 9 | + - `CTEManager` and `CTEQuerySet` are deprecated and should be removed from |
| 10 | + code that uses them, as they are no longer necessary. They will be removed |
| 11 | + in a future version of django-cte. |
| 12 | + - Reference the [documentation](https://dimagi.github.io/django-cte/) for new |
| 13 | + usage patterns. |
| 14 | +- **BREAKING:** On Django 5.2 and later, the name specified in |
| 15 | + `.values('fk_name')` must match the name of the same column referenced by |
| 16 | + `cte.col.fk_name`—for example, in a join condition. It may end with `_id` or |
| 17 | + not, but the references must be consistent. This change may require previously |
| 18 | + working CTE queries to be adjusted when migrating to Django 5.2 |
| 19 | + ([example](https://github.com/dimagi/django-cte/commit/321d92cd8d1edd515c1f5000a3b12c35265aa4f8)). |
| 20 | +- Django 5.0 is EOL and no longer supported. |
| 21 | +- Fixed broken `UNION` and other "combined" queries. |
| 22 | +- Internally, the library has been updated to simplify the code and remove |
| 23 | + workarounds for old and unsupported versions of Django. |
| 24 | +- Modernized development tooling |
| 25 | + - Replaced _nosetests_ with _pytest_. |
| 26 | + - Replaced _setup.py_ with _pyproject.toml_ |
| 27 | + - Replaced _flake8_ with _ruff_. |
| 28 | + - Replaced _venv/pip_ with _uv_. |
| 29 | + - Improved Github Actions automation, including automated releases. |
| 30 | + - Dev versions of django-cte are now published on PyPI, making them easier to |
| 31 | + test and use before an official release is cut. |
| 32 | + |
3 | 33 | ## 1.3.3 - 2024-06-07
|
4 | 34 |
|
5 | 35 | - Handle empty result sets in CTEs ([#92](https://github.com/dimagi/django-cte/pull/92)).
|
|
0 commit comments