- update to 1.30.0:
* Support parsing Django versions without a minor part from
pyproject.toml. For example, django>=6 will be parsed as for
Django 6.0+. PR #625.
* Drop Python 3.9 support.
* Remove the AppConfig rewriting behaviour of
:ref:`default_auto_field <default_auto_field>`. It was unsafe
for projects setting DEFAULT_AUTO_FIELD to a field other than
BigAutoField, triggering regressive migrations for primary
keys in affected apps. PR #606.
* Add Django 6.0+ fixer :ref:`mail_api_kwargs
<mail_api_kwargs>` to rewrite positional arguments to keyword
arguments for some django.core.mail APIs. PR #600.
* Add Django 6.0+ fixer :ref:`default_auto_field
<default_auto_field>` to remove now-redundant auto field
specifications. The fixer removes the DEFAULT_AUTO_FIELD
setting and AppConfig.default_auto_field attribute when they
are set to the new default of django.db.models.BigAutoField.
Thanks to q0w in PR #591.
* Add Django 6.0+ fixer :ref:`stringagg <stringagg>` to rewrite
StringAgg imports from django.contrib.postgres.aggregates to
django.db.models. This fixer replaces the compatibility
import rewrite added in 1.27.0, and now correctly wraps the
delimiter argument in Value() when it is a string literal. PR
#596.
* Add Django 6.0+ fixer :ref:`settings_admins_managers
<settings_admins_managers>` to rewrite the ADMINS and
MANAGERS settings to drop the previously-unused name parts of
the tuples. PR #601.
* Support Python 3.14.
OBS-URL: https://build.opensuse.org/request/show/1341702
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-django-upgrade?expand=0&rev=13
Description
No description provided
Languages
RPM Spec
100%