mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-07-13 17:52:19 +03:00
Added auto M2M
This commit is contained in:
parent
5051d3bb61
commit
346f93fc50
|
@ -43,8 +43,9 @@ def get_model_fields(model):
|
||||||
local_fields = [
|
local_fields = [
|
||||||
(field.name, field)
|
(field.name, field)
|
||||||
for field
|
for field
|
||||||
in sorted(list(model._meta.fields) +
|
in sorted(set(list(model._meta.fields) +
|
||||||
list(model._meta.local_many_to_many))
|
list(model._meta.many_to_many) +
|
||||||
|
list(model._meta.local_many_to_many)))
|
||||||
]
|
]
|
||||||
|
|
||||||
# Make sure we don't duplicate local fields with "reverse" version
|
# Make sure we don't duplicate local fields with "reverse" version
|
||||||
|
|
Loading…
Reference in New Issue
Block a user