djangodocs.org

706 sections in Django 6.0 Search all versions →

GeoDjango form widgets

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 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.

Forms

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.

Bugfixes

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).

Miscellaneous

Release notes Django 5.0 release notes Features deprecated in 5.0

The DjangoDivFormRenderer and Jinja2DivFormRenderer transitional form renderers are deprecated. Passing positional arguments name and violation_error_message to BaseConstraint is deprecated in favor of keyword-only arguments. request is added to the signature of ModelAdmin.lookup_allowed().

Bugfixes

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).

Forms

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

The new ColorInput form widget is for entering a color in rrggbb hexadecimal format and renders as <input type="color" ...>. Some browsers support a visual color picker interface for this input type.

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

To ease customizing widgets, form widget rendering is now done using the template system rather than in Python. See The form rendering API. You may need to adjust any custom widgets that you’ve written for a few backwards incompatible changes.