From 5166097d7c80cab757e44f2d02f3d148fbbc2ff6 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Thu, 9 Jan 2020 15:41:54 +0000 Subject: Fixed #31154 -- Added support for using enumeration types in templates. Enumeration helpers are callables, so the template system tried to call them with no arguments. Thanks Rupert Baker for helping discover this. --- docs/releases/3.0.3.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'docs') diff --git a/docs/releases/3.0.3.txt b/docs/releases/3.0.3.txt index 27ace475d1..ab5a2fd84b 100644 --- a/docs/releases/3.0.3.txt +++ b/docs/releases/3.0.3.txt @@ -20,3 +20,6 @@ Bugfixes * Relaxed the system check added in Django 3.0 to reallow use of a sublanguage in the :setting:`LANGUAGE_CODE` setting, when a base language is available in Django but the sublanguage is not (:ticket:`31141`). + +* Added support for using enumeration types ``TextChoices``, + ``IntegerChoices``, and ``Choices`` in templates (:ticket:`31154`). -- cgit v1.3