We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bc1495 commit 7d5d7eaCopy full SHA for 7d5d7ea
graphene/contrib/django/tests/test_converter.py
@@ -117,6 +117,23 @@ class Meta:
117
assert graphene_type.__enum__.__members__['ENGLISH'].value == 'en'
118
119
120
+def test_field_with_grouped_choices():
121
+ field = models.CharField(help_text='Language', choices=(
122
+ ('Europe', (
123
+ ('es', 'Spanish'),
124
+ ('en', 'English'),
125
+ )),
126
+ ))
127
+
128
+ class TranslatedModel(models.Model):
129
+ language = field
130
131
+ class Meta:
132
+ app_label = 'test'
133
134
+ convert_django_field_with_choices(field)
135
136
137
def test_should_float_convert_float():
138
assert_conversion(models.FloatField, graphene.Float)
139
0 commit comments