Commit a31b3515 by Őry Máté

bugfix: save new imported disks to db

parent afed5d58
...@@ -108,7 +108,7 @@ class Disk(models.Model): ...@@ -108,7 +108,7 @@ class Disk(models.Model):
d.name=name d.name=name
d.save() d.save()
except: except:
Disk(id=id, name=name).save Disk(id=id, name=name).save()
l.append(id) l.append(id)
Disk.objects.exclude(id__in=l).delete() Disk.objects.exclude(id__in=l).delete()
......
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 sign in to comment