only delete existing values
This commit is contained in:
parent
82d369e58d
commit
5947f2295b
1 changed files with 1 additions and 1 deletions
|
@ -368,7 +368,7 @@ class Document(models.Model):
|
||||||
else:
|
else:
|
||||||
if data[key]:
|
if data[key]:
|
||||||
self.data[key] = ox.escape_html(data[key])
|
self.data[key] = ox.escape_html(data[key])
|
||||||
else:
|
elif key in self.data:
|
||||||
del self.data[key]
|
del self.data[key]
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
Loading…
Reference in a new issue