djangodocs.org

689 sections across all versions Narrow to Django 6.0 (current) →

Bugfixes

Release notes Django 1.10.1 release notes

Fixed a checks framework crash with an empty Meta.default_permissions (#26997). Fixed a regression in the number of queries when using RadioSelect with a ModelChoiceField form field (#27001). Fixed a crash if request.META['CONTENT_LENGTH'] is an empty string (#27005).

django.contrib.gis

Release notes Django 1.11 release notes Backwards incompatible changes in 1.11

The OpenLayers-based form widgets now use OpenLayers.js from https://cdnjs.cloudflare.com which is more suitable for production use than the old https://openlayers.org/ source. They are also updated to use OpenLayers 3. PostGIS migrations can now change field dimensions.

django.contrib.postgres

Release notes Django 1.11 release notes What’s new in Django 1.11Minor features

Three fields are provided: CICharField, CIEmailField, and CITextField. The new JSONBAgg allows aggregating values as a JSON array. The HStoreField (model field) and HStoreField (form field) allow storing null values.

Forms

Release notes Django 1.11 release notes What’s new in Django 1.11Minor features

The new empty_value attribute on CharField, EmailField, RegexField, SlugField, and URLField allows specifying the Python value to use to represent “empty”. The new Form.get_initial_for_field() method returns initial data for a form field.

Bugfixes

Release notes Django 1.11.4 release notes

Fixed a regression in 1.11.3 on Python 2 where non-ASCII format values for date/time widgets results in an empty value in the widget’s HTML (#28355). Fixed QuerySet.union() and difference() when combining with a queryset raising EmptyResultSet (#28378).

Ordering of tests

Release notes Django 1.5 release notes Backwards incompatible changes in 1.5Changes in tests execution

This should not cause any problems unless you have existing doctests which assume a TransactionTestCase executed earlier left some database state behind or unit tests that rely on some form of state being preserved after the execution of other tests.

Release notes Django 1.6 release notes Features deprecated in 1.6

The generic views CreateView and UpdateView, and anything else derived from ModelFormMixin, are vulnerable to the security problem described in the section above, because they can automatically create a ModelForm that uses all fields for a model.

django.contrib.admin

Release notes Django 1.8 release notes Backwards incompatible changes in 1.8

InlineModelAdmin now has an attribute show_change_link that supports showing a link to an inline object’s change form. Use the new django.contrib.admin.RelatedOnlyFieldListFilter in ModelAdmin.list_filter to limit the list_filter choices to foreign objects which are attached to those from the ModelAdmin.

Generic Views

Release notes Django 1.8 release notes What’s new in Django 1.8Minor features

The new SingleObjectMixin.query_pk_and_slug attribute allows changing the behavior of get_object() so that it’ll perform its lookup using both the primary key and the slug. The get_form() method doesn’t require a form_class to be provided anymore.

Release notes Django 1.8 release notes Features deprecated in 1.8

The original_content_type_id attribute on InlineAdminForm has been deprecated and will be removed in Django 1.10. Historically, it was used to construct the “view on site” URL. This URL is now accessible using the absolute_url attribute of the form.

Bugfixes

Release notes Django 1.8.8 release notes

Corrected __len query lookup on ArrayField for empty arrays (#25772). Restored the ability to use custom formats from formats.py with django.utils.formats.get_format() and the date template filter (#25812). Fixed a state bug when migrating a SeparateDatabaseAndState operation backwards (#25896).

Django 2.0 release notes

Release notes

This release starts Django’s use of a loose form of semantic versioning, but there aren’t any major backwards incompatible changes that might be expected of a 2.0 release. Upgrading should be a similar amount of effort as past feature releases.