Restore usage of upstream django-celery package. Purge periodic tasks before dumping the database.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2018-09-01 03:41:34 -04:00
parent 427aad8277
commit 6baa63a989
3 changed files with 5 additions and 6 deletions

View File

@@ -64,6 +64,8 @@ class Command(management.BaseCommand):
)
)
management.call_command('purgeperiodictasks')
management.call_command(
'dumpdata', all=True, database=options['from'],
natural_primary=True, natural_foreign=True,