Commit f0462cb1 authored by Anze Vavpetic's avatar Anze Vavpetic

added uuid generation for AbstractInput options.

parent 275af07d
......@@ -267,6 +267,10 @@ class AbstractWidget(models.Model):
i.uid = uuid.uuid4()
if commit:
i.save()
for option in i:
option.uid = uuid.uuid4()
if commit:
option.save()
for o in self.outputs.all():
o.uid = uuid.uuid4()
if commit:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment