file.item

This commit is contained in:
j 2011-06-27 21:55:40 +02:00
parent 3139acd9e7
commit a7a1b1ba10
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ def update_or_create_instance(volume, f):
instance = models.Instance.objects.filter(name=f['name'], folder=f['folder'], volume=volume)
if instance.count()>0:
#same path, other oshash, keep path/item mapping, remove instance
item = instance[0].item
item = instance[0].file.item
instance.delete()
else: #new instance
item = None