mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Added tests for model field's choices iterator/iterable values.
This commit is contained in:
committed by
Mariusz Felisiak
parent
6934fc3f6e
commit
f1c0a3baf7
@@ -81,6 +81,7 @@ class Choiceful(models.Model):
|
||||
empty_choices_bool = models.BooleanField(choices=())
|
||||
empty_choices_text = models.TextField(choices=())
|
||||
choices_from_enum = models.IntegerField(choices=Suit)
|
||||
choices_from_iterator = models.IntegerField(choices=((i, str(i)) for i in range(3)))
|
||||
|
||||
|
||||
class BigD(models.Model):
|
||||
|
||||
Reference in New Issue
Block a user