forked from 0x2620/pandora
update item sort after changing person sort value, fixes #30
This commit is contained in:
parent
2cf7c56115
commit
6bdbd729a7
2 changed files with 20 additions and 1 deletions
11
pandora/person/tasks.py
Normal file
11
pandora/person/tasks.py
Normal 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()
|
||||
Loading…
Add table
Add a link
Reference in a new issue