This commit is contained in:
huzichunjohn 2017-11-14 18:22:56 +00:00 committed by GitHub
commit a6347d3e19

View File

@ -100,7 +100,7 @@ class CustomField(models.Model):
"""
Convert a string into the object it represents depending on the type of field
"""
if serialized_value is '':
if serialized_value == '':
return None
if self.type == CF_TYPE_INTEGER:
return int(serialized_value)