Using string_type instead of str and unicode
This commit is contained in:
parent
6ce92c4ea4
commit
9abd91dafa
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@ class MultiSelectField(models.CharField):
|
|||
return '' if value is None else ",".join(value)
|
||||
|
||||
def get_db_prep_value(self, value, connection, prepared=False):
|
||||
if not prepared and not isinstance(value, str) and not isinstance(value, unicode):
|
||||
if not prepared and not isinstance(value, string_type):
|
||||
value = self.get_prep_value(value)
|
||||
return value
|
||||
|
||||
|
|
Loading…
Reference in a new issue