mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-10-24 03:26:11 -05:00
Fix: skip workflow title migration for empty titles (#11136)
This commit is contained in:
@@ -15,6 +15,8 @@ def convert_from_format_to_template(apps, schema_editor):
|
|||||||
|
|
||||||
with transaction.atomic():
|
with transaction.atomic():
|
||||||
for WorkflowAction in WorkflowActions.objects.all():
|
for WorkflowAction in WorkflowActions.objects.all():
|
||||||
|
if not WorkflowAction.assign_title:
|
||||||
|
continue
|
||||||
WorkflowAction.assign_title = convert_format_str_to_template_format(
|
WorkflowAction.assign_title = convert_format_str_to_template_format(
|
||||||
WorkflowAction.assign_title,
|
WorkflowAction.assign_title,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user