mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-02 19:40:13 +03:00
Merge e80c22bce4
into df77f7bb9d
This commit is contained in:
commit
3fb6a2dbec
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user