mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-25 19:13:57 +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):
|
||||
super(DjangoOptions, self).contribute_to_class(cls, name)
|
||||
if is_node(cls):
|
||||
self.exclude_fields += ['id']
|
||||
self.exclude_fields = list(self.exclude_fields) + ['id']
|
||||
self.interfaces.append(Node)
|
||||
if not is_node(cls) and not is_base(cls):
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue
Block a user