Reference JavaScript customizations in the admin Inline form events
jQuery handles JavaScript events but the reverse isn’t true. You could check for the presence of event.detail.formsetName and fall back to the old listener signature as follows:
654 sections in Django 4.2 Search all versions →
Reference JavaScript customizations in the admin Inline form events
jQuery handles JavaScript events but the reverse isn’t true. You could check for the presence of event.detail.formsetName and fall back to the old listener signature as follows:
Release notes Django 2.0 release notes Backwards incompatible changes in 2.0
To help prevent runtime errors due to incorrect ordering of form field arguments, optional arguments of built-in form fields are no longer accepted as positional arguments. For example: raises an exception and should be replaced with:
Release notes Django 4.1 release notes What’s new in Django 4.1
In order to aid users with screen readers, and other assistive technology, new <div> based form templates are available from this release.
Release notes Django 1.4 release notes What’s new in Django 1.4
The previous FormWizard from django.contrib.formtools has been replaced with a new implementation based on the class-based views introduced in Django 1.3.
Release notes Django 1.5 release notes Backwards incompatible changes in 1.5
request.POST will no longer include data posted via HTTP requests with non form-specific content-types in the header. In prior versions, data posted with content-types other than multipart/form-data or application/x-www-form-urlencoded would still end up represented in the request.POST attribute.
Release notes Django 1.6 release notes What’s new in Django 1.6
GeoDjango now provides form fields and widgets for its geo-specialized fields. They are OpenLayers-based by default, but they can be customized to use any other JS framework.
Release notes Django 1.6 release notes Backwards incompatible changes in 1.6
HTML rendering of model form fields corresponding to ManyToManyField model fields used to get the hard-coded sentence: Hold down “Control”, or “Command” on a Mac, to select more than one.
Release notes Django 1.7 release notes What’s new in Django 1.7
Release notes Django 2.2 release notes Backwards incompatible changes in 2.2
Form Media assets are now merged using a topological sort algorithm, as the old pairwise merging algorithm is insufficient for some cases.
Release notes Django 4.0 release notes What’s new in Django 4.0
Forms, Formsets, and ErrorList are now rendered using the template engine to enhance customization. See the new render(), get_context(), and template_name for Form and formset rendering for Formset.
Release notes Django 1.6 release notes Backwards incompatible changes in 1.6
This is consistent with how methods like Form.as_p and Form.as_ul render labels.
Release notes Django 1.6 release notes Features deprecated in 1.6
All special handling of the help_text attribute of ManyToManyField model fields performed by standard model or model form fields as described in Help text of model form fields for ManyToManyField fields above is deprecated and will be removed in Django …
Release notes Django 1.8 release notes Features deprecated in 1.8
FormMixin subclasses that override the get_form() method should make sure to provide a default value for the form_class argument since it’s now optional.
Release notes Django 1.11.27 release notes
By submitting a suitably crafted email address making use of Unicode characters, that compared equal to an existing user email when lower-cased for comparison, an attacker could be sent a password reset token for the matched account.
Release notes Django 2.2.9 release notes
By submitting a suitably crafted email address making use of Unicode characters, that compared equal to an existing user email when lower-cased for comparison, an attacker could be sent a password reset token for the matched account.
Release notes Django 3.0.1 release notes
By submitting a suitably crafted email address making use of Unicode characters, that compared equal to an existing user email when lower-cased for comparison, an attacker could be sent a password reset token for the matched account.
Release notes Django 1.8 release notes What’s new in Django 1.8Minor features
Form widgets now render attributes with a value of True or False as HTML5 boolean attributes. The new has_error() method allows checking if a specific error has happened.
Release notes Django 1.11.6 release notes
Made the CharField form field convert whitespace-only values to the empty_value when strip is enabled (#28555). Fixed crash when using the name of a model’s autogenerated primary key (id) in an Index’s fields (#28597).
Release notes Django 1.10.6 release notes
Fixed ClearableFileInput’s “Clear” checkbox on model form fields where the model field has a default (#27805). Fixed RequestDataTooBig and TooManyFieldsSent exceptions crashing rather than generating a bad request response (#27820).
Release notes Django 1.6 release notes Features deprecated in 1.6
If you defined your own form widgets and defined the _has_changed method on a widget, you should now define this method on the form field itself.