Top
image credit: Unsplash

Django 5.0 simplifies templates for form field rendering

December 5, 2023

Via: InfoWorld

The newly released Django 5.0, the latest version of the popular Python web framework, features capabilities such as simplified templates for form field rendering and database-computed default values.

Announced December 4, Django 5.0 can be installed with the pip package installer: pip install Django==5.0.

Django 5.0 introduces the concept of a field group and field group templates, which simplify the rendering of related elements of a Django form field such as its widget, label, errors, and help text, according to release notes. The new release also now shows facet counts for applied filters in the admin changelist when toggled on via the UI. This behavior can be changed through the new ModelAdmin.show_facets attribute.

Read More on InfoWorld