update in memory object too

This commit is contained in:
j 2012-02-15 18:02:52 +05:30
parent 8520c06680
commit b9129b10c7

View file

@ -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()