Skip to content

Commit

Permalink
Explicitly cast Decimals to strs if value is a list
Browse files Browse the repository at this point in the history
  • Loading branch information
yuvadm committed Dec 3, 2015
1 parent a98465d commit e845396
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions geoposition/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def from_db_value(self, value, expression, connection, context):
if isinstance(value, Geoposition):
return value
if isinstance(value, list):
list = map(str, list)
return Geoposition(value[0], value[1])

# default case is string
Expand Down

0 comments on commit e845396

Please sign in to comment.