mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-07-13 17:52:19 +03:00
Don't force-capitalize choice fields
Fixes #133. Thanks to Waitak for the patch.
This commit is contained in:
parent
090ce6e1f1
commit
552952f29e
|
@ -29,7 +29,7 @@ singledispatch = import_single_dispatch()
|
||||||
|
|
||||||
|
|
||||||
def convert_choice_name(name):
|
def convert_choice_name(name):
|
||||||
name = to_const(force_text(name))
|
name = force_text(name)
|
||||||
try:
|
try:
|
||||||
assert_valid_name(name)
|
assert_valid_name(name)
|
||||||
except AssertionError:
|
except AssertionError:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user