summaryrefslogtreecommitdiff
path: root/tests/model_fields/models.py
diff options
context:
space:
mode:
authorNatalia <124304+nessita@users.noreply.github.com>2023-08-16 15:15:31 -0300
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2023-08-22 05:55:23 +0200
commitf1c0a3baf74baae94a0d4137782e15edcdf54a7e (patch)
treeb287002bf0df8b534244469d7383a34236a3b966 /tests/model_fields/models.py
parent6934fc3f6eeaecc9363d0949c2f9691940a12121 (diff)
Added tests for model field's choices iterator/iterable values.
Diffstat (limited to 'tests/model_fields/models.py')
-rw-r--r--tests/model_fields/models.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/model_fields/models.py b/tests/model_fields/models.py
index 424a78746d..1776cb9bcb 100644
--- a/tests/model_fields/models.py
+++ b/tests/model_fields/models.py
@@ -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):