From 526d34d0094026d382bcbf599e2c3a4316b6d26a Mon Sep 17 00:00:00 2001 From: Syrus Akbary Date: Mon, 19 Oct 2015 23:13:48 -0700 Subject: [PATCH] Fixed exclude_fields when is a tuple --- graphene/contrib/django/options.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphene/contrib/django/options.py b/graphene/contrib/django/options.py index b0b5a89b..5aff6007 100644 --- a/graphene/contrib/django/options.py +++ b/graphene/contrib/django/options.py @@ -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