From f9a0f18b0d6007499a28e657e403f955c66285d0 Mon Sep 17 00:00:00 2001 From: Syrus Akbary Date: Tue, 6 Oct 2015 01:05:01 -0700 Subject: [PATCH] Fixed local_fields with fields when Extending from A non abstract Django model --- graphene/contrib/django/types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphene/contrib/django/types.py b/graphene/contrib/django/types.py index 56f0237b..0c660217 100644 --- a/graphene/contrib/django/types.py +++ b/graphene/contrib/django/types.py @@ -26,7 +26,7 @@ class DjangoObjectTypeMeta(ObjectTypeMeta): return only_fields = cls._meta.only_fields reverse_fields = tuple(get_reverse_fields(cls._meta.model)) - all_fields = (list(cls._meta.model._meta.local_fields) + + all_fields = (list(cls._meta.model._meta.fields) + list(reverse_fields) + list(cls._meta.model._meta.local_many_to_many))