Django-upgrade

Latest version: v1.22.1

Safety actively analyzes 681844 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 5

1.7.0

------------------

* Support Python 3.11.

1.6.1

------------------

* Fix ``default_app_config`` fixer to work with ``__init__.py`` files in subdirectories.

Thanks to Bruno Alla in `PR 144 <https://github.com/adamchainz/django-upgrade/pull/144>`__.

* Add ``--version`` flag.

Thanks to Ferran Jovell in `PR 143 <https://github.com/adamchainz/django-upgrade/pull/143>`__.

1.6.0

------------------

* Add Django 3.2+ fixer to remove ``default_app_config`` assignments in ``__init__.py`` files.

Thanks to Bruno Alla in `PR 140 <https://github.com/adamchainz/django-upgrade/pull/140>`__.

1.5.0

------------------

* Fix URL rewriting to avoid converting regular expressions that don’t end with ``$``.
If the ``$`` is missing, Django will search for the given regular expression anywhere in the path.

Thanks to qdufrois for the report in `Issue 121 <https://github.com/adamchainz/django-upgrade/issues/121>`__.

* Made ``JSONField`` and ``NullBooleanField`` fixers ignore migrations files.
Django kept these old field classes around for use in historical migrations, so there’s no need to rewrite such cases.

Thanks to Matthieu Rigal and Bruno Alla for the report in `Issue 79 <https://github.com/adamchainz/django-upgrade/issues/79>`__.

1.4.0

------------------

* Add Django 2.0+ fixer to rewrite imports of ``lru_cache`` from ``django.utils.functional`` to use ``functools``.

* Support Django 4.0 as a target version.
There are no fixers for it at current.
Most of its deprecations don’t seem automatically fixable.

1.3.2

------------------

* Avoid rewriting ``request.META`` to ``request.headers`` in assignments.
This pattern is used in tests, and works for ``request.META`` but not ``request.headers``.

Thanks to Bruno Alla for the report in `Issue 74 <https://github.com/adamchainz/django-upgrade/issues/74>`__.

Page 4 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.