update item sort after changing person sort value, fixes #30

This commit is contained in:
j 2012-02-15 21:31:24 +05:30
commit 6bdbd729a7
2 changed files with 20 additions and 1 deletions

11
pandora/person/tasks.py Normal file
View file

@ -0,0 +1,11 @@
# -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
from celery.task import task
import models
@task(ignore_resulsts=True, queue='default')
def update_itemsort(id):
p = models.Person.objects.get(pk=id)
p.update_itemsort()