mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-27 17:54:08 +03:00
Merge pull request #4273 from aaugustin/issue-4272
Add missing return statement.
This commit is contained in:
commit
6b713207d2
|
@ -125,7 +125,7 @@ def get_related_model(field):
|
|||
def value_from_object(field, obj):
|
||||
if django.VERSION < (1, 9):
|
||||
return field._get_val_from_obj(obj)
|
||||
field.value_from_object(obj)
|
||||
return field.value_from_object(obj)
|
||||
|
||||
|
||||
# contrib.postgres only supported from 1.8 onwards.
|
||||
|
|
Loading…
Reference in New Issue
Block a user