---
title: "Django 3.0.3 release notes"
version: 3.2
locale: pl
source: https://docs.djangoproject.com/pl/3.2/releases/3.0.3/
canonical: https://djangodocs.dev/pl/3.2/releases/3.0.3/
---
# Django 3.0.3 release notes

*February 3, 2020*

Django 3.0.3 fixes a security issue and several bugs in 3.0.2.

## CVE-2020-7471: Potential SQL injection via `StringAgg(delimiter)`

[`StringAgg`](/pl/3.2/ref/contrib/postgres/aggregates/#django.contrib.postgres.aggregates.StringAgg) aggregation function was
subject to SQL injection, using a suitably crafted `delimiter`.

## Poprawki błędów

- Fixed a regression in Django 3.0 that caused a crash when subtracting
  `DateField`, `DateTimeField`, or `TimeField` from a `Subquery()`
  annotation ([#31133](https://code.djangoproject.com/ticket/31133)).
- Fixed a regression in Django 3.0 where `QuerySet.values()` and
  `values_list()` crashed if a queryset contained an aggregation and
  `Exists()` annotation ([#31136](https://code.djangoproject.com/ticket/31136)).
- Relaxed the system check added in Django 3.0 to reallow use of a sublanguage
  in the [`LANGUAGE_CODE`](/pl/3.2/ref/settings/#std-setting-LANGUAGE_CODE) setting, when a base language is available in
  Django but the sublanguage is not ([#31141](https://code.djangoproject.com/ticket/31141)).
- Added support for using enumeration types `TextChoices`,
  `IntegerChoices`, and `Choices` in templates ([#31154](https://code.djangoproject.com/ticket/31154)).
- Fixed a system check to ensure the `max_length` attribute fits the longest
  choice, when a named group contains only non-string values ([#31155](https://code.djangoproject.com/ticket/31155)).
- Fixed a regression in Django 2.2 that caused a crash of
  [`ArrayAgg`](/pl/3.2/ref/contrib/postgres/aggregates/#django.contrib.postgres.aggregates.ArrayAgg) and
  [`StringAgg`](/pl/3.2/ref/contrib/postgres/aggregates/#django.contrib.postgres.aggregates.StringAgg) with `filter`
  argument when used in a `Subquery` ([#31097](https://code.djangoproject.com/ticket/31097)).
- Fixed a regression in Django 2.2.7 that caused
  [`get_FOO_display()`](/pl/3.2/ref/models/instances/#django.db.models.Model.get_FOO_display) to work incorrectly when
  overriding inherited choices ([#31124](https://code.djangoproject.com/ticket/31124)).
- Fixed a regression in Django 3.0 that caused a crash of
  `QuerySet.prefetch_related()` for `GenericForeignKey` with a custom
  `ContentType` foreign key ([#31190](https://code.djangoproject.com/ticket/31190)).
