annotate gpp/potd/tasks.py @ 532:ff67946fd4b0

For #242, move the updating of the POTD sequence into a new signals module. When photos are deleted from the admin changelist in bulk, the individual delete() functions on the photo objects is not called. However, the post_delete signal is called for each object.
author Brian Neal <bgneal@gmail.com>
date Sun, 25 Dec 2011 04:15:32 +0000
parents ae89ba801e8b
children
rev   line source
bgneal@515 1 """
bgneal@515 2 Celery tasks for the POTD app.
bgneal@515 3
bgneal@515 4 """
bgneal@515 5 from celery.task import task
bgneal@515 6
bgneal@515 7 import potd.tools
bgneal@515 8
bgneal@515 9
bgneal@515 10 @task
bgneal@515 11 def pick_potd():
bgneal@515 12 potd.tools.pick_potd()