mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 17:47:04 +03:00
parent
91aad9299b
commit
a436515196
|
@ -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