djangodocs.org

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

Release notes Django 1.4 release notes Backwards incompatible changes in 1.4

To avoid conflicts with other common CSS class names (e.g. “button”), we added a prefix (“field-”) to all CSS class names automatically generated from the form field names in the main admin forms, stacked inline forms and tabular inline cells.

4.2 5.0 5.1 5.2 6.0

Python 3 support

Release notes Django 1.5 release notes Python compatibility

Django 1.5 introduces support for Python 3 - specifically, Python 3.2 and above. This comes in the form of a single codebase; you don’t need to install a different version of Django on Python 3.

4.2 5.0 5.1 5.2 6.0

Signals

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

The enter argument was added to the setting_changed signal. The model signals can be now be connected to using a str of the 'app_label.ModelName' form – just like related fields – to lazily reference their senders.

4.2 5.0 5.1 5.2 6.0

Forms

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

ModelForm accepts the new Meta option field_classes to customize the type of the fields. See Overriding the default fields for details.

4.2 5.0 5.1 5.2 6.0

Forms

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.

4.2 5.0 5.1 5.2 6.0

Generic Views

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.

4.2 5.0 5.1 5.2 6.0

DeleteView changes

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.

4.2 5.0 5.1 5.2 6.0

Forms

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.

4.2 5.0 5.1 5.2 6.0

django.contrib.auth

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.

4.2 5.0 5.1 5.2 6.0