python-django-upgrade

Edit Package python-django-upgrade

Automatically upgrade your Django projects

Refresh
Refresh
Source Files
Filename Size Changed
django-upgrade-1.13.0.tar.gz 0000063088 61.6 KB
python-django-upgrade.changes 0000003979 3.89 KB
python-django-upgrade.spec 0000002274 2.22 KB
Revision 7 (latest revision is 16)
Dirk Mueller's avatar Dirk Mueller (dirkmueller) committed (revision 7)
- update to 1.13.0:
  * Add Django 4.2+ fixer to combine deprecated
    ``DEFAULT_FILE_STORAGE`` and ``STATICFILES_STORAGE`` settings
    into the new ``STORAGES`` setting.
  * Add Django 4.2+ fixer to rewrite HTTP headers passed to test
    ``Client`` and ``RequestFactory``.
  * Add Django 4.2+ fixer to rewrite test case methods
    ``assertFormsetError()`` and ``assertQuerysetEqual()`` into
    the new spellings with capitalized “Set”.
  * Add Django 4.0 fixer to rewrite
    ``django.contrib.admin.utils.lookup_needs_distinct`` ->
    ``lookup_spawns_duplicates``.
  * Rewrite ``request.META`` -> ``request.headers`` on the *right
    hand side* of assignments.
  * Group some compatibility import replacements into a single
    “fixer”, optimizing runtime by about 3%.
Comments 0
openSUSE Build Service is sponsored by