Fixed local_fields with fields when Extending from A non abstract Django model

This commit is contained in:
Syrus Akbary 2015-10-06 01:05:01 -07:00
parent 0843499306
commit f9a0f18b0d

View File

@ -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))