mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-15 02:57:09 +01:00
remove only automatically created schedules (almost)
This commit is contained in:
parent
83f82f3caf
commit
6795580739
1 changed files with 3 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue