Mercurial > public > sg101
annotate messages/tasks.py @ 1166:130ac1e98cf4
More V3 forums tweaking.
Adding attachments is working now.
Adding a post via ajax is working.
Still need to display attachments on posts.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 20 Aug 2017 15:55:54 -0500 |
parents | aeafbf3ecebf |
children |
rev | line source |
---|---|
bgneal@518 | 1 """ |
bgneal@518 | 2 Celery tasks for the messages application. |
bgneal@518 | 3 |
bgneal@518 | 4 """ |
bgneal@750 | 5 from __future__ import absolute_import |
bgneal@518 | 6 |
bgneal@750 | 7 from celery import shared_task |
bgneal@518 | 8 |
bgneal@750 | 9 |
bgneal@750 | 10 @shared_task |
bgneal@518 | 11 def purge_messages(): |
bgneal@518 | 12 """ |
bgneal@518 | 13 Task to purge messages that have been deleted by both sender & receiver. |
bgneal@518 | 14 |
bgneal@518 | 15 """ |
bgneal@518 | 16 from messages.management.commands.purge_messages import Command |
bgneal@518 | 17 |
bgneal@518 | 18 command = Command() |
bgneal@518 | 19 command.execute() |