mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-03-01 09:50:40 +03:00
fix for issue #3634
This commit is contained in:
parent
4eef2ea21e
commit
e475464945
|
@ -92,7 +92,7 @@ def _get_fields(opts):
|
||||||
|
|
||||||
|
|
||||||
def _get_to_field(field):
|
def _get_to_field(field):
|
||||||
return field.to_fields[0] if field.to_fields else None
|
return field.to_fields[0] if hasattr(field, 'to_fields') else None
|
||||||
|
|
||||||
|
|
||||||
def _get_forward_relationships(opts):
|
def _get_forward_relationships(opts):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user