only set nonempty titles
This commit is contained in:
parent
9cf48cb609
commit
d104852138
1 changed files with 2 additions and 1 deletions
|
@ -124,6 +124,7 @@ class ChangeSet(models.Model):
|
||||||
|
|
||||||
for name, value in data.items():
|
for name, value in data.items():
|
||||||
if name.startswith('title_'):
|
if name.startswith('title_'):
|
||||||
|
if value:
|
||||||
obj.titles[name[6:]] = value
|
obj.titles[name[6:]] = value
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue