PDF Download

Django 4.1

August 3, 2022 Python 3.8 – 3.11

All Django versions

Adds an asynchronous ORM interface, async handlers in class-based views, and validation of model constraints.

Download Django 4.1 PDF Official release notes

Release notes

  • Released: August 3, 2022
  • Python: 3.8 – 3.11
  • Support: Standard release

Read the full notes, including backwards-incompatible changes, at docs.djangoproject.com.

New features

  • Async QuerySet interface (aget(), acreate(), async for...).
  • Asynchronous handlers for class-based views.
  • Model.validate_constraints() runs during model validation.
  • Accessible <div>-based form rendering templates.
  • bulk_create() can update rows on conflict (update_conflicts).

Deprecated features

  • Positional arguments to Signer and TimestampSigner.
  • CryptPasswordHasher.
  • The response argument of assertFormError() and assertFormsetError().