]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Fix: skip workflow title migration for empty titles (#11136)
authorshamoon <4887959+shamoon@users.noreply.github.com>
Wed, 22 Oct 2025 19:17:06 +0000 (12:17 -0700)
committerGitHub <noreply@github.com>
Wed, 22 Oct 2025 19:17:06 +0000 (12:17 -0700)
src/documents/migrations/1073_migrate_workflow_title_jinja.py

index 6b5f3fd59a439b21f248b3fbf8c2316a7ab209d4..3f5689629e2e765fb859756ae12175e73c9fb385 100644 (file)
@@ -15,6 +15,8 @@ def convert_from_format_to_template(apps, schema_editor):
 
     with transaction.atomic():
         for WorkflowAction in WorkflowActions.objects.all():
+            if not WorkflowAction.assign_title:
+                continue
             WorkflowAction.assign_title = convert_format_str_to_template_format(
                 WorkflowAction.assign_title,
             )