From a2eaea8f22305b57dff3ab13add2e2887287bb6f Mon Sep 17 00:00:00 2001 From: "T. Franzel" Date: Sat, 11 Mar 2023 00:34:13 +0100 Subject: Fixed #34388 -- Allowed using choice enumeration types directly on model and form fields. --- docs/topics/db/models.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/topics') diff --git a/docs/topics/db/models.txt b/docs/topics/db/models.txt index fc0c927270..33a515f14f 100644 --- a/docs/topics/db/models.txt +++ b/docs/topics/db/models.txt @@ -211,7 +211,7 @@ ones: class Runner(models.Model): MedalType = models.TextChoices("MedalType", "GOLD SILVER BRONZE") name = models.CharField(max_length=60) - medal = models.CharField(blank=True, choices=MedalType.choices, max_length=10) + medal = models.CharField(blank=True, choices=MedalType, max_length=10) Further examples are available in the :ref:`model field reference `. -- cgit v1.3