Revisions of python-django-upgrade

Ana Guerrero's avatar Ana Guerrero (anag+factory) accepted request 1165950 from Dirk Mueller's avatar Dirk Mueller (dirkmueller) (revision 7)
- update to 1.16.0:
  * Remove the Django 5.0+ fixer that dropped .choices from model
    field choices parameters. It was too unreliable because it
    could break use for “DIY” enumeration types.
  * Remove the Django 5.0+ fixer that dropped .choices from model
    field choices parameters. It was too unreliable because it
    could break use for “DIY” enumeration types.
  * Add Django 1.10+ fixer to rewrite request.user functions that
    changed to boolean attributes: is_authenticated and
    is_anonymous.
  * Add Django 1.10+ fixer to rewrite request.user functions that
    changed to boolean attributes: is_authenticated and
    is_anonymous.
  * Add Django 2.0+ imports fixes for names moved from
    django.core.urlresolvers to django.urls.
  * Add Django 2.0+ imports fixes for names moved from
    django.core.urlresolvers to django.urls.
Ana Guerrero's avatar Ana Guerrero (anag+factory) accepted request 1130488 from Dirk Mueller's avatar Dirk Mueller (dirkmueller) (revision 6)
- update to 1.15.0:
  * Support Django 5.0 as a target version.
  * Add Django 5.0+ fixer to drop ``.choices`` on model field
    ``choices`` parameters when using an enumeration type.
  * Add some compatibility import replacements for Django 4.0 and
    below.
  * Fix issue with ``@admin.register()`` checker
Ana Guerrero's avatar Ana Guerrero (anag+factory) accepted request 1110366 from Dirk Mueller's avatar Dirk Mueller (dirkmueller) (revision 5)
- update to 1.14.1:
  * Fix bug in ``STORAGES`` fixer when only one of
    ``DEFAULT_FILE_STORAGE`` or ``STATICFILES_STORAGE`` was
    defined.
Dominique Leuenberger's avatar Dominique Leuenberger (dimstar_suse) accepted request 1098172 from Dirk Mueller's avatar Dirk Mueller (dirkmueller) (revision 4)
- update to 1.14.0:
  * Support Python 3.12.
Dominique Leuenberger's avatar Dominique Leuenberger (dimstar_suse) accepted request 1075479 from Dirk Mueller's avatar Dirk Mueller (dirkmueller) (revision 3)
- 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%.
Dominique Leuenberger's avatar Dominique Leuenberger (dimstar_suse) accepted request 1059955 from Dirk Mueller's avatar 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``.
Dominique Leuenberger's avatar Dominique Leuenberger (dimstar_suse) accepted request 1000651 from John Vandenberg's avatar John Vandenberg (jayvdb) (revision 1)
Tool to automatically update django code
Displaying all 7 revisions
openSUSE Build Service is sponsored by