Skip to content

Commit

Permalink
Merge pull request #4273 from aaugustin/issue-4272
Browse files Browse the repository at this point in the history
Add missing return statement.
  • Loading branch information
xordoquy authored Jul 17, 2016
2 parents ad9c96e + a436515 commit 6b71320
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rest_framework/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 6b71320

Please sign in to comment.