mirror of
https://github.com/graphql-python/graphene.git
synced 2025-02-18 04:20:36 +03:00
Fixed exclude_fields when is a tuple
This commit is contained in:
parent
551a0d0b1d
commit
526d34d009
|
@ -26,7 +26,7 @@ class DjangoOptions(Options):
|
||||||
def contribute_to_class(self, cls, name):
|
def contribute_to_class(self, cls, name):
|
||||||
super(DjangoOptions, self).contribute_to_class(cls, name)
|
super(DjangoOptions, self).contribute_to_class(cls, name)
|
||||||
if is_node(cls):
|
if is_node(cls):
|
||||||
self.exclude_fields += ['id']
|
self.exclude_fields = list(self.exclude_fields) + ['id']
|
||||||
self.interfaces.append(Node)
|
self.interfaces.append(Node)
|
||||||
if not is_node(cls) and not is_base(cls):
|
if not is_node(cls) and not is_base(cls):
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue
Block a user