From e9f05868c1c0b9abcf8d8ab086973996b88b9e63 Mon Sep 17 00:00:00 2001 From: Sonny Date: Wed, 22 Apr 2020 23:11:24 +0200 Subject: [PATCH] Update data migration --- src/newsreader/accounts/migrations/0008_auto_20200422_2243.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/newsreader/accounts/migrations/0008_auto_20200422_2243.py b/src/newsreader/accounts/migrations/0008_auto_20200422_2243.py index 6a305f0..657245a 100644 --- a/src/newsreader/accounts/migrations/0008_auto_20200422_2243.py +++ b/src/newsreader/accounts/migrations/0008_auto_20200422_2243.py @@ -2,10 +2,10 @@ from django.db import migrations -from django_celery_beat.models import PeriodicTask - def update_task_name(apps, schema_editor): + PeriodicTask = apps.get_model("django_celery_beat", "PeriodicTask") + old_task = "newsreader.news.collection.tasks.collect" new_task = "newsreader.news.collection.tasks.FeedTask"