workaround for a bug in django-q: task results with too long names would not show up in the result lists.

This commit is contained in:
Jonas Winkler
2020-11-22 13:53:19 +01:00
parent d356dfe028
commit 9c23207b84
3 changed files with 4 additions and 4 deletions

View File

@@ -286,7 +286,7 @@ class MailAccountHandler(LoggingMixin):
override_correspondent_id=correspondent.id if correspondent else None, # NOQA: E501
override_document_type_id=doc_type.id if doc_type else None, # NOQA: E501
override_tag_ids=[tag.id] if tag else None,
task_name=f"Mail: {att.filename}"
task_name=att.filename[:100]
)
processed_attachments += 1