remove only automatically created schedules (almost)

This commit is contained in:
Jonas Winkler 2020-11-11 14:13:54 +01:00
parent 83f82f3caf
commit 6795580739

View File

@ -13,7 +13,9 @@ def add_schedules(apps, schema_editor):
def remove_schedules(apps, schema_editor):
Schedule.objects.all().delete()
Schedule.objects.filter(func='documents.tasks.train_classifier').delete()
Schedule.objects.filter(func='documents.tasks.index_optimize').delete()
Schedule.objects.filter(func='documents.tasks.consume_mail').delete()
class Migration(migrations.Migration):