reset string values
This commit is contained in:
parent
ef075ffb78
commit
6970cbd08e
1 changed files with 2 additions and 2 deletions
|
@ -122,7 +122,7 @@ class Imdb(models.Model):
|
||||||
if isinstance(value, str):
|
if isinstance(value, str):
|
||||||
value = normalize_value(value)
|
value = normalize_value(value)
|
||||||
setattr(self, key, value)
|
setattr(self, key, value)
|
||||||
else:
|
elif isinstance(getattr(self, key), str):
|
||||||
setattr(self, key, '')
|
setattr(self, key, '')
|
||||||
if self.season and self.season < 0:
|
if self.season and self.season < 0:
|
||||||
self.season = None
|
self.season = None
|
||||||
|
|
Loading…
Reference in a new issue