Merge pull request #4273 from aaugustin/issue-4272

Add missing return statement.
This commit is contained in:
Xavier Ordoquy 2016-07-17 13:54:18 +02:00 committed by GitHub
commit 6b713207d2

View File

@ -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.