Release notes
Django 2.0 release notes
What’s new in Django 2.0Minor features
The new date_attrs and time_attrs arguments for SplitDateTimeWidget and SplitHiddenDateTimeWidget allow specifying different HTML attributes for the DateInput and TimeInput (or hidden) subwidgets. The new Form.errors.get_json_data() method returns form errors as a dictionary suitable for including in a JSON response.
Release notes
Django 2.1 release notes
Backwards incompatible changes in 2.1Considerations for the new model “view” permission
With the new “view” permission, existing custom admin forms may raise errors when a user doesn’t have the change permission because the form might access nonexistent fields.
Release notes
Django 2.1.2 release notes
If an admin user has the change permission to the user model, only part of the password hash is displayed in the change form.
Release notes
Django 2.2 release notes
Features deprecated in 2.2
The FloatRangeField model and form fields in django.contrib.postgres are deprecated in favor of a new name, DecimalRangeField, to match the underlying numrange data type used in the database. The FILE_CHARSET setting is deprecated.
Release notes
Django 4.0 release notes
What’s new in Django 4.0Minor features
DeleteView now uses FormMixin, allowing you to provide a Form subclass, with a checkbox for example, to confirm deletion. In addition, this allows DeleteView to function with django.contrib.messages.views.SuccessMessageMixin.
Release notes
Django 4.0 release notes
Backwards incompatible changes in 4.0
DeleteView now uses FormMixin to handle POST requests. As a consequence, any custom deletion logic in delete() handlers should be moved to form_valid(), or a shared helper method, if required.
Release notes
Django 4.1 release notes
What’s new in Django 4.1Minor features
The default template used to render forms when cast to a string, e.g. in templates as {{ form }}, is now configurable at the project-level by setting form_template_name on the class provided for FORM_RENDERER.
Release notes
Django 4.1 release notes
What’s new in Django 4.1Minor features
For example, for the <p> output style used by as_p(), you would define a form renderer setting form_template_name to "django/forms/p.html" and formset_template_name to "django/forms/formsets/p.html".
Release notes
Django 4.1 release notes
Features deprecated in 4.1
Use POST requests instead. If you want to retain the user experience of an HTML link, you can use a form that is styled to appear as a link:
Release notes
Django 4.2 release notes
What’s new in Django 4.2Minor features
UserCreationForm now saves many-to-many form fields for a custom user model. The new BaseUserCreationForm is now the recommended base class for customizing the user creation form.
Release notes
Django 5.0 release notes
What’s new in Django 5.0
Field.choices (for model fields) and ChoiceField.choices (for form fields) allow for more flexibility when declaring their values.
Release notes
Django 5.0 release notes
What’s new in Django 5.0Minor features
In order to improve accessibility, the following changes are made: Form fields now include the aria-describedby HTML attribute to enable screen readers to associate form fields with their help text. Invalid form fields now include the aria-invalid="true" HTML attribute.
Release notes
Django 5.1 release notes
What’s new in Django 5.1Minor features
In order to improve accessibility and enable screen readers to associate fieldsets with their help text, the form fieldset now includes the aria-describedby HTML attribute.
Release notes
Django 6.0 release notes
What’s new in Django 6.0Minor features
The new AdminSite.password_change_form attribute allows customizing the form used in the admin site password change view. Message levels messages.DEBUG and messages.INFO now have distinct icons and CSS styling. Previously, both levels shared the same appearance as messages.SUCCESS.
Release notes
Django 6.0.2 release notes
Fixed a visual regression in Django 6.0 for admin form fields grouped under a <fieldset> aligned horizontally (#36788).
Release notes
Django 6.1 release notes
What’s new in Django 6.1Minor features
The new asset object Stylesheet is available for adding custom HTML-attributes to stylesheet links in form media. See paths as objects for more details.
Release notes
Archive of security issues
Issues under Django’s security process
Potential account hijack via password reset form. Full description
Release notes
Django version 0.96 release notes
Backwards-incompatible changes
The format of the constraint names Django generates for foreign key references have changed slightly.
Release notes
Porting your apps from Django 0.96 to 1.0
Common changes
The Django administrative interface (django.contrib.admin) has been completely refactored; admin definitions are now completely decoupled from model definitions, the framework has been rewritten to use Django’s new form-handling library and redesigned with extensibility and customization in mind.
Release notes
Porting your apps from Django 0.96 to 1.0
Less-common changesInternationalization
This means you can no longer use a link to access the view, but must use a form submission of some kind (e.g. a button).