Skip to content

Commit 526d34d

Browse files
committed
Fixed exclude_fields when is a tuple
1 parent 551a0d0 commit 526d34d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphene/contrib/django/options.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def __init__(self, *args, **kwargs):
2626
def contribute_to_class(self, cls, name):
2727
super(DjangoOptions, self).contribute_to_class(cls, name)
2828
if is_node(cls):
29-
self.exclude_fields += ['id']
29+
self.exclude_fields = list(self.exclude_fields) + ['id']
3030
self.interfaces.append(Node)
3131
if not is_node(cls) and not is_base(cls):
3232
return

0 commit comments

Comments
 (0)