This commit is contained in:
John 2018-01-30 23:13:31 +00:00 committed by GitHub
commit 3fb6a2dbec

View File

@ -93,6 +93,7 @@ def _get_forward_relationships(opts):
# manytomany do not have to_fields
to_field=None,
has_through_model=(
(getattr(field.remote_field, 'through', None) is not None) and
not field.remote_field.through._meta.auto_created
),
reverse=False