Skip to content

chore(deps): bump django-cte from 1.3.3 to 3.0.0#5733

Open
dependabot[bot] wants to merge 1 commit intounstablefrom
dependabot/uv/django-cte-3.0.0
Open

chore(deps): bump django-cte from 1.3.3 to 3.0.0#5733
dependabot[bot] wants to merge 1 commit intounstablefrom
dependabot/uv/django-cte-3.0.0

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Mar 3, 2026

Bumps django-cte from 1.3.3 to 3.0.0.

Changelog

Sourced from django-cte's changelog.

3.0.0 - 2026-02-05

  • BREAKING: on Django 5.2 and later when joining a CTE to a queryset with LEFT OUTER JOIN (_join_type=LOUTER) and the join condition implicitly joins a related table, the implicit join is now a LEFT OUTER JOIN instead of an INNER JOIN. This makes the join behavior match SQL database semantics: the left-side rows are always preserved. To restore the old behavior, either do not use _join_type=LOUTER or add extra WHERE conditions as needed. See #130 for more details.
  • Fixed CTE.queryset() queries involving aggregates (#128).
  • Fixed Django 5.2 ambiguous column names bug (#127).
  • Fixed possible ambiguous column names in SQL (#125).
  • Fixed Django 5.2 CTE.queryset() regression (#124).

2.0.0 - 2025-06-16

  • API overhaul
    • With has been renamed to CTE. With is deprecated and will be removed in a future version of django-cte.
    • with_cte was moved from a CTEQuerySet method to a stand-alone function.
    • CTEManager and CTEQuerySet 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 by cte.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.
Commits
  • 472491f Merge pull request #136 from dimagi/dm/3.0
  • 33e5c2f Prepare for 3.0.0 release
  • 40645ac Merge pull request #132 from wawrzdev/raw_cte_queryset
  • 80557f1 Fix raw_cte_queryset in Subqueries
  • 3aa0949 Merge pull request #131 from us77ipis/main
  • 88dd766 Condense LEFT OUTER JOIN release notes
  • 613fafb Update CHANGELOG with breaking change from PR #130
  • fd3c009 Merge pull request #130 from us77ipis/main
  • 7c6dc8f Fix invalid INNER JOIN added on LEFT OUTER JOIN for django 5.2
  • 322b36a Add test for a LEFT OUTER JOIN that generated an invalid INNER JOIN
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [django-cte](https://github.com/dimagi/django-cte) from 1.3.3 to 3.0.0.
- [Changelog](https://github.com/dimagi/django-cte/blob/main/CHANGELOG.md)
- [Commits](dimagi/django-cte@v1.3.3...v3.0.0)

---
updated-dependencies:
- dependency-name: django-cte
  dependency-version: 3.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file python:uv Pull requests that update python:uv code labels Mar 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python:uv Pull requests that update python:uv code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants