title_de support in get_created_object
This commit is contained in:
parent
0d67c2d1d8
commit
410398b21e
1 changed files with 5 additions and 0 deletions
|
@ -102,7 +102,12 @@ class ChangeSet(models.Model):
|
|||
obj = model()
|
||||
obj.pk = 'c'+str(pk)
|
||||
for name, value in self.created_objects[model][pk].items():
|
||||
if name.startswith('title_'):
|
||||
obj.titles[name[6:]] = value
|
||||
continue
|
||||
|
||||
class_value = getattr(model, name)
|
||||
|
||||
if isinstance(class_value, ManyToManyDescriptor):
|
||||
continue
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue