python-django-upgrade
Automatically upgrade your Django projects
- Developed at devel:languages:python:django
- Sources inherited from project openSUSE:Factory
-
2
derived packages
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout openSUSE:Backports:SLE-15-SP4:FactoryCandidates/python-django-upgrade && cd $_
- Create Badge
Refresh
Refresh
Source Files
Filename | Size | Changed |
---|---|---|
django-upgrade-1.12.0.tar.gz | 0000057333 56 KB | |
python-django-upgrade.changes | 0000003060 2.99 KB | |
python-django-upgrade.spec | 0000002274 2.22 KB |
Revision 2 (latest revision is 7)
Dominique Leuenberger (dimstar_suse)
accepted
request 1059955
from
Dirk Mueller (dirkmueller)
(revision 2)
- update to 1.12.0: * Make ``re_path`` -> ``path`` fixer also convert ``include()``\'s with unterminated regexes. * Avoid rewriting ``request.META`` to ``request.headers`` in ``del`` statements. * Add Django 1.9+ fixer to rename the legacy engine name ``django.db.backends.postgresql_psycopg2`` in ``settings.DATABASES`` to ``django.db.backends.postgresql``. * Make detection of management commands and migration files detect both forward and backward slashes as directory separators. - update to 1.11.0: * See also `the release blog post <https://adamj.eu/tech/2022/10/26/django-upgrade-mega-release/>`__. * Add Django 1.7+ fixer to rewrite ``admin.site.register()`` calls into ``@admin.register()`` when eligible. * Add Django 3.2+ fixer to rewrite admin action function attributes to use the ``@admin.action()`` decorator. * Add Django 3.2+ fixer to rewrite admin display function attributes to use the ``@admin.display()`` decorator. * Add Django 4.1+ fixer to rewrite calls to test case methods ``assertFormError()`` and ``assertFormsetError()`` from their old signatures to the new ones. * Add Django 2.0+ fixer to drop assignments of ``allow_tags`` attributes to ``True``. * Add Django 3.1+ fixer to replace ``list`` error message key with ``list_invalid`` on ``ModelMultipleChoiceField``. * Make ``request.headers`` fixer also rewrite accesses of the ``content- length`` and ``content-type`` headers. * Extend ``request.headers`` fixer to rewrite ``in`` and ``not in`` comparisons on ``request.META``.
Comments 0