Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

remove only automatically created schedules (almost)

Jonas Winkler6795580739f2
diff --git a/src/documents/migrations/1001_auto_20201109_1636.py b/src/documents/migrations/1001_auto_20201109_1636.py
index 8d6a0f584..138de6f91 100644
--- a/src/documents/migrations/1001_auto_20201109_1636.py
+++ b/src/documents/migrations/1001_auto_20201109_1636.py
@@ -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):