mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-26 03:23:55 +03:00
Fixed local_fields with fields when Extending from A non abstract Django model
This commit is contained in:
parent
0843499306
commit
f9a0f18b0d
|
@ -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))
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user