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 be20450 commit b5e7614Copy full SHA for b5e7614
graphene_django/converter.py
@@ -41,7 +41,7 @@ def get_choices(choices):
41
42
43
def convert_django_field_with_choices(field, registry=None):
44
- if registry:
+ if registry is not None:
45
converted = registry.get_converted_field(field)
46
if converted:
47
return converted
@@ -63,7 +63,7 @@ def description(self):
63
converted = enum(description=field.help_text, required=not field.null)
64
else:
65
converted = convert_django_field(field, registry)
66
67
registry.register_converted_field(field, converted)
68
69
0 commit comments