Add management command to purge periodic tasks from the DB.

This commit is contained in:
Roberto Rosario
2015-07-11 01:49:15 -04:00
parent d6c053f913
commit cb6e80926e

View File

@@ -0,0 +1,12 @@
from __future__ import unicode_literals
from django.core import management
from djcelery.models import PeriodicTask
class Command(management.BaseCommand):
help = 'Removes all periodic tasks.'
def handle(self, *args, **options):
PeriodicTask.objects.all().delete()