diff options
Diffstat (limited to 'docs/topics')
| -rw-r--r-- | docs/topics/db/models.txt | 2 |
1 files changed, 1 insertions, 1 deletions
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 <field-choices>`. |
