only delete existing values

This commit is contained in:
j 2017-02-21 17:46:16 +01:00
parent 82d369e58d
commit 5947f2295b

View file

@ -368,7 +368,7 @@ class Document(models.Model):
else:
if data[key]:
self.data[key] = ox.escape_html(data[key])
else:
elif key in self.data:
del self.data[key]
@property