From c659ff961b264e5a267f49c386b6e9d65e55fe18 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sun, 11 Mar 2012 21:33:17 +0100 Subject: [PATCH] dont call manager, use get --- pandora/archive/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/archive/views.py b/pandora/archive/views.py index 6efbfe9c..829ae902 100644 --- a/pandora/archive/views.py +++ b/pandora/archive/views.py @@ -84,7 +84,7 @@ def update(request): if 'info' in data: for oshash in data['info']: info = data['info'][oshash] - f = models.File.objects(oshash=oshash) + f = models.File.objects.get(oshash=oshash) if f.count()>0: f = f[0] if not f.info: