Commit a4365151 by Aymeric Augustin

Add missing return statement.

Fix #4272.
parent 91aad929
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment