8000 Fix compatibility with drf 3.15.0 (#1507) · MrThearMan/graphene-django@43416da · GitHub
[go: up one dir, main page]

Skip to content

Commit 43416da

Browse files
committed
Fix compatibility with drf 3.15.0 (graphql-python#1507)
1 parent 54372b4 commit 43416da

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

graphene_django/converter.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import inspect
2-
from collections import OrderedDict
32
from functools import partial, singledispatch, wraps
43

54
from django.db import models
@@ -72,7 +71,7 @@ def convert_choice_name(name):
7271

7372
def get_choices(choices):
7473
converted_names = []
75-
if isinstance(choices, OrderedDict):
74+
if isinstance(choices, dict):
7675
choices = choices.items()
7776
for value, help_text in choices:
7877
if isinstance(help_text, (tuple, list)):

0 commit comments

Comments
 (0)
0