From d6a1ec42662768dff577fe30f752b12f55a7f63c Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Mon, 27 Jun 2011 21:55:40 +0200 Subject: [PATCH] file.item --- pandora/archive/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/archive/tasks.py b/pandora/archive/tasks.py index 57f6eb5d..341dd156 100644 --- a/pandora/archive/tasks.py +++ b/pandora/archive/tasks.py @@ -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