Skip to content
This repository has been archived by the owner on Jan 20, 2020. It is now read-only.

Commit

Permalink
Make sure map is evaluated on python 3.
Browse files Browse the repository at this point in the history
  • Loading branch information
meshy committed Oct 23, 2013
1 parent 3ca7c66 commit fc47327
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dbarray/fields.py
Expand Up @@ -118,7 +118,7 @@ def get_prep_value(self, value):
return None
if not isinstance(value, (list, tuple, set, deque,)):
raise ValidationError("An ArrayField value must be None or an iterable.")
return map(smart_text, value)
return list(map(smart_text, value))

class DateField(models.DateField):
def get_prep_value(self, value):
Expand Down

0 comments on commit fc47327

Please sign in to comment.