Commit ded0351a authored by Janez K's avatar Janez K

fixing some import bugs

parent c02d2311
......@@ -117,6 +117,9 @@ def import_package(package_name,writer):
setattr(i,field,inp['fields'][field])
i.widget = aw
i.save()
# find stale inputs
stale_ais = AbstractInput.objects.filter(widget=aw).exclude(uid__in=[inp['fields']['uid'] for inp in inputs])
print stale_ais
for out in outputs:
try:
o = AbstractOutput.objects.get(uid=out['fields']['uid'])
......
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