From cb7d5bf82a05c88398f9a95f5c7744972f70af2c Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Sat, 20 Jul 2019 00:15:19 -0400 Subject: [PATCH] Update djcelery imports Signed-off-by: Roberto Rosario --- mayan/apps/common/management/commands/purgeperiodictasks.py | 2 +- mayan/apps/mayan_statistics/classes.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mayan/apps/common/management/commands/purgeperiodictasks.py b/mayan/apps/common/management/commands/purgeperiodictasks.py index 835e47440d..e750cf2d47 100644 --- a/mayan/apps/common/management/commands/purgeperiodictasks.py +++ b/mayan/apps/common/management/commands/purgeperiodictasks.py @@ -2,7 +2,7 @@ from __future__ import unicode_literals from django.core import management -from djcelery.models import IntervalSchedule, PeriodicTask +from django_celery_beat.models import IntervalSchedule, PeriodicTask class Command(management.BaseCommand): diff --git a/mayan/apps/mayan_statistics/classes.py b/mayan/apps/mayan_statistics/classes.py index 7e5be5a6cf..671dab799e 100644 --- a/mayan/apps/mayan_statistics/classes.py +++ b/mayan/apps/mayan_statistics/classes.py @@ -61,7 +61,7 @@ class Statistic(object): @staticmethod def purge_schedules(): PeriodicTask = apps.get_model( - app_label='djcelery', model_name='PeriodicTask' + app_label='django_celery_beat', model_name='PeriodicTask' ) StatisticResult = apps.get_model( app_label='mayan_statistics', model_name='StatisticResult'