Skip to content

Conversation

@dependabot
Copy link

@dependabot dependabot bot commented on behalf of github Mar 31, 2025

Bumps django-upgrade from 1.18.0 to 1.24.0.

Changelog

Sourced from django-upgrade's changelog.

1.24.0 (2025-03-27)

  • Parse target Django version from pyproject.toml. Now, if you don’t specify a version with --target-version, django-upgrade will try to parse your minimum-supported target Django version from project.dependencies in pyproject.toml. It supports several common formats, like django>=5.2,<6.0.

    PR [#543](https://github.com/adamchainz/django-upgrade/issues/543) <https://github.com/adamchainz/django-upgrade/pull/543>__.

  • Add Django 5.2+ fixer postgres_aggregate_order_by to rewrite PostgreSQL aggregate functions using the old argument name ordering to the new name order_by.

    Issue [#538](https://github.com/adamchainz/django-upgrade/issues/538) <https://github.com/adamchainz/django-upgrade/issues/538>__.

  • Add Django 5.2+ fixer staticfiles_find_all to rewrite calls to the staticfiles find() function using the old argument name all to the new name find_all.

    Issue [#539](https://github.com/adamchainz/django-upgrade/issues/539) <https://github.com/adamchainz/django-upgrade/issues/539>__.

  • Restore Django 5.0+ fixer model_field_choices, with a restriction to only apply when the enumeration type is defined in the same file.

    Thanks to Thibaut Decombe for initially contributing it in PR [#369](https://github.com/adamchainz/django-upgrade/issues/369) <https://github.com/adamchainz/django-upgrade/pull/369>__.

  • Add Django 2.0+ compatibility import rewrite of django.http.cookie.SimpleCookie to http.cookies.SimpleCookie.

    Thanks to Thibaut Decombe in PR [#537](https://github.com/adamchainz/django-upgrade/issues/537) <https://github.com/adamchainz/django-upgrade/pull/537>__.

1.23.1 (2025-02-07)

  • Fix django_url fixer bug that failed for indented path strings. This bug was introduced in 1.23.0.

    Thanks to Michal Čihař for the report in Issue [#528](https://github.com/adamchainz/django-upgrade/issues/528) <https://github.com/adamchainz/django-upgrade/issues/528>__.

1.23.0 (2025-02-06)

  • Support Django 5.2 in --target-version.

  • Extend versioned block fixer to support comparisons with single-item tuples, like django.VERSION >= (4,).

    Thanks to Thibaut Decombe in PR [#517](https://github.com/adamchainz/django-upgrade/issues/517) <https://github.com/adamchainz/django-upgrade/pull/517>__.

  • Fix test decorator fixer to remove all indentation tokens from the decorator line.

    Thanks to Thibaut Decombe in PR [#518](https://github.com/adamchainz/django-upgrade/issues/518) <https://github.com/adamchainz/django-upgrade/pull/518>__.

  • Fix django_url fixer handling of implicitly concatenated strings.

    Thanks to Gunther Waidacher for the report in Issue [#524](https://github.com/adamchainz/django-upgrade/issues/524) <https://github.com/adamchainz/django-upgrade/issues/524>__.

... (truncated)

Commits
  • 846961a Version 1.24.0
  • 6aa4b36 Parse target version from pyproject.toml (#543)
  • 475e50f Add missed Django classifiers (#544)
  • 9b1786d Restore Django 5.0+ model_field_choices fixer (#542)
  • 964b6fe Add Django 5.2+ fixer staticfiles_find_all (#541)
  • 260d6dd Add Django 5.2+ PostgreSQL aggregrate order_by fixer (#540)
  • 00ddb21 Add SimpleCookie compatibility import fixer (#537)
  • cf14cf2 Remove apostrophe from heading
  • 377e51a Remove setup-uv cache-dependency-glob
  • 10d3503 [pre-commit.ci] pre-commit autoupdate (#534)
  • 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 merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @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)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update python code labels Mar 31, 2025
Bumps [django-upgrade](https://github.com/adamchainz/django-upgrade) from 1.18.0 to 1.24.0.
- [Changelog](https://github.com/adamchainz/django-upgrade/blob/main/CHANGELOG.rst)
- [Commits](adamchainz/django-upgrade@1.18.0...1.24.0)

---
updated-dependencies:
- dependency-name: django-upgrade
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/pip/django-upgrade-1.24.0 branch from 768c9d3 to 43b3d87 Compare April 1, 2025 15:12
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 Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant