dont call manager, use get

This commit is contained in:
j 2012-03-11 21:33:17 +01:00
parent a214d4ec7c
commit c659ff961b

View file

@ -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: