---
title: "Note di rilascio di Django 3.1.3"
version: 5.0
locale: it
source: https://docs.djangoproject.com/it/5.0/releases/3.1.3/
canonical: https://djangodocs.dev/it/5.0/releases/3.1.3/
---
# Note di rilascio di Django 3.1.3

*2 Novembre 2020*

Django 3.1.3 fixes several bugs in 3.1.2 and adds compatibility with Python
3.9.

## Correzioni di bug

- Fixed a regression in Django 3.1.2 that caused the incorrect height of the
  admin changelist search bar ([#32072](https://code.djangoproject.com/ticket/32072)).
- Fixed a regression in Django 3.1.2 that caused the incorrect width of the
  admin changelist search bar on a filtered page ([#32091](https://code.djangoproject.com/ticket/32091)).
- Fixed displaying Unicode characters in
  [`forms.JSONField`](/it/5.0/ref/forms/fields/#django.forms.JSONField) and read-only
  [`models.JSONField`](/it/5.0/ref/models/fields/#django.db.models.JSONField) values in the admin
  ([#32080](https://code.djangoproject.com/ticket/32080)).
- Fixed a regression in Django 3.1 that caused a crash of
  [`ArrayAgg`](/it/5.0/ref/contrib/postgres/aggregates/#django.contrib.postgres.aggregates.ArrayAgg) and
  [`StringAgg`](/it/5.0/ref/contrib/postgres/aggregates/#django.contrib.postgres.aggregates.StringAgg) with `ordering`
  on key transforms for [`JSONField`](/it/5.0/ref/models/fields/#django.db.models.JSONField) ([#32096](https://code.djangoproject.com/ticket/32096)).
- Fixed a regression in Django 3.1 that caused a crash of `__in` lookup when
  using key transforms for [`JSONField`](/it/5.0/ref/models/fields/#django.db.models.JSONField) in the lookup
  value ([#32096](https://code.djangoproject.com/ticket/32096)).
- Fixed a regression in Django 3.1 that caused a crash of
  [`ExpressionWrapper`](/it/5.0/ref/models/expressions/#django.db.models.ExpressionWrapper) with key transforms for
  [`JSONField`](/it/5.0/ref/models/fields/#django.db.models.JSONField) ([#32096](https://code.djangoproject.com/ticket/32096)).
- Fixed a regression in Django 3.1 that caused a migrations crash on PostgreSQL
  when adding an
  [`ExclusionConstraint`](/it/5.0/ref/contrib/postgres/constraints/#django.contrib.postgres.constraints.ExclusionConstraint) with key
  transforms for [`JSONField`](/it/5.0/ref/models/fields/#django.db.models.JSONField) in `expressions`
  ([#32096](https://code.djangoproject.com/ticket/32096)).
- Fixed a regression in Django 3.1 where
  [`ProtectedError.protected_objects`](/it/5.0/ref/exceptions/#django.db.models.ProtectedError) and
  [`RestrictedError.restricted_objects`](/it/5.0/ref/exceptions/#django.db.models.RestrictedError)
  attributes returned iterators instead of [`set`](https://docs.python.org/3/library/stdtypes.html#set) of objects
  ([#32107](https://code.djangoproject.com/ticket/32107)).
- Fixed a regression in Django 3.1.2 that caused incorrect form input layout on
  small screens in the admin change form view ([#32069](https://code.djangoproject.com/ticket/32069)).
- Fixed a regression in Django 3.1 that invalidated pre-Django 3.1 password
  reset tokens ([#32130](https://code.djangoproject.com/ticket/32130)).
- Added support for `asgiref` 3.3 ([#32128](https://code.djangoproject.com/ticket/32128)).
- Fixed a regression in Django 3.1 that caused incorrect textarea layout on
  medium-sized screens in the admin change form view with the sidebar open
  ([#32127](https://code.djangoproject.com/ticket/32127)).
- Fixed a regression in Django 3.0.7 that didn’t use `Subquery()` aliases in
  the `GROUP BY` clause ([#32152](https://code.djangoproject.com/ticket/32152)).
