only set nonempty titles

This commit is contained in:
Laura Klünder 2017-06-18 18:09:47 +02:00
parent 9cf48cb609
commit d104852138

View file

@ -124,6 +124,7 @@ class ChangeSet(models.Model):
for name, value in data.items():
if name.startswith('title_'):
if value:
obj.titles[name[6:]] = value
continue