Commit 2ccc92d9 authored by matjaz's avatar matjaz
Browse files

mothra: optimization of reseting widgets / workflows => added deffer

parent 3f97449b
......@@ -542,11 +542,11 @@ class Widget(models.Model):
return None
def reset(self,offline):
for i in self.inputs.all():
for i in self.inputs.defer("value").all():
if not i.parameter:
i.value = None
i.save()
for i in self.outputs.all():
for i in self.outputs.defer("value").all():
i.value = None
i.save()
self.finished = False
......
Supports Markdown
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