mirror of
https://github.com/graphql-python/graphene-django.git
synced 2024-11-25 19:14:11 +03:00
Only evaluate reverse M2Ms in get_reverse_fields
This commit is contained in:
parent
afec960e4d
commit
7a765537e9
|
@ -33,7 +33,7 @@ def get_reverse_fields(model):
|
|||
yield (name, new_related)
|
||||
elif isinstance(related, models.ManyToOneRel):
|
||||
yield (name, related)
|
||||
elif isinstance(related, models.ManyToManyRel) and not related.symmetrical:
|
||||
elif isinstance(related, models.ManyToManyRel) and attr.reverse and not related.symmetrical:
|
||||
yield (name, related)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user