Skip to content

Commit

Permalink
BUGFIX: TypeError exception raised
Browse files Browse the repository at this point in the history
  • Loading branch information
Javier Palacios committed Apr 26, 2020
1 parent 128fffc commit 119f360
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion django_mysql/models/fields/lists.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def from_db_value(self, value, expression, connection, context):
if not len(value):
value = []
else:
value = [self.base_field.to_python(v) for
value = [self.base_field.to_python(self.base_field, v) for
v in value.split(',')]
return value

Expand Down
2 changes: 1 addition & 1 deletion django_mysql/models/fields/sets.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def from_db_value(self, value, expression, connection, context):
if not len(value):
value = set()
else:
value = {self.base_field.to_python(v) for
value = {self.base_field.to_python(self.base_field, v) for
v in value.split(',')}
return value

Expand Down

0 comments on commit 119f360

Please sign in to comment.