Skip to content

Commit

Permalink
Renamed "value_repr" to "representation"
Browse files Browse the repository at this point in the history
  • Loading branch information
nemesifier committed Oct 29, 2015
1 parent 2cff497 commit 61ede3c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rest_framework_gis/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,10 @@ def get_properties(self, instance, fields):
if field.write_only:
continue
value = field.get_attribute(instance)
value_repr = None
representation = None
if value is not None:
value_repr = field.to_representation(value)
properties[field.field_name] = value_repr
representation = field.to_representation(value)
properties[field.field_name] = representation

return properties

Expand Down

0 comments on commit 61ede3c

Please sign in to comment.