---
title: "Django 4.0.3 release notes"
version: 4.2
locale: en
source: https://docs.djangoproject.com/en/4.2/releases/4.0.3/
canonical: https://djangodocs.dev/en/4.2/releases/4.0.3/
---
# Django 4.0.3 release notes

*March 1, 2022*

Django 4.0.3 fixes several bugs in 4.0.2. Also, all Python code in Django is
reformatted with [black](https://pypi.org/project/black/).

## Bugfixes

- Prevented, following a regression in Django 4.0.1, [`makemigrations`](/en/4.2/ref/django-admin/#django-admin-makemigrations)
  from generating infinite migrations for a model with `ManyToManyField` to
  a lowercased swappable model such as `'auth.user'` ([#33515](https://code.djangoproject.com/ticket/33515)).
- Fixed a regression in Django 4.0 that caused a crash when rendering invalid
  inlines with [`readonly_fields`](/en/4.2/ref/contrib/admin/#django.contrib.admin.ModelAdmin.readonly_fields) in the
  admin ([#33547](https://code.djangoproject.com/ticket/33547)).
