From b9129b10c79d2f43c4213423610df394a042a857 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Wed, 15 Feb 2012 18:02:52 +0530 Subject: [PATCH] update in memory object too --- pandora/annotation/tasks.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pandora/annotation/tasks.py b/pandora/annotation/tasks.py index 3036e916..0f395504 100644 --- a/pandora/annotation/tasks.py +++ b/pandora/annotation/tasks.py @@ -54,6 +54,7 @@ def update_item(id): if filter(lambda f: f['id'] == a.layer, settings.CONFIG['filters']): a.item.update_layer_facet(a.layer) Item.objects.filter(id=a.item.id).update(modified=a.modified) + a.item.modified = a.modified a.item.update_find() a.item.update_sort() a.item.update_facets()