Update djcelery imports
Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
This commit is contained in:
@@ -2,7 +2,7 @@ from __future__ import unicode_literals
|
|||||||
|
|
||||||
from django.core import management
|
from django.core import management
|
||||||
|
|
||||||
from djcelery.models import IntervalSchedule, PeriodicTask
|
from django_celery_beat.models import IntervalSchedule, PeriodicTask
|
||||||
|
|
||||||
|
|
||||||
class Command(management.BaseCommand):
|
class Command(management.BaseCommand):
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ class Statistic(object):
|
|||||||
@staticmethod
|
@staticmethod
|
||||||
def purge_schedules():
|
def purge_schedules():
|
||||||
PeriodicTask = apps.get_model(
|
PeriodicTask = apps.get_model(
|
||||||
app_label='djcelery', model_name='PeriodicTask'
|
app_label='django_celery_beat', model_name='PeriodicTask'
|
||||||
)
|
)
|
||||||
StatisticResult = apps.get_model(
|
StatisticResult = apps.get_model(
|
||||||
app_label='mayan_statistics', model_name='StatisticResult'
|
app_label='mayan_statistics', model_name='StatisticResult'
|
||||||
|
|||||||
Reference in New Issue
Block a user