Chore: Backend dependencies update (#5676)

This commit is contained in:
Trenton H
2024-02-08 09:48:24 -08:00
committed by GitHub
parent c508be6ecd
commit b60e16fe33
14 changed files with 718 additions and 602 deletions

View File

@@ -9,11 +9,9 @@ from paperless_mail.models import ProcessedMail
class MailAccountAdminForm(forms.ModelForm):
"""Metadata classes used by Django admin to display the form."""
class Meta:
"""Metadata class used by Django admin to display the form."""
model = MailAccount

View File

@@ -739,9 +739,11 @@ class MailAccountHandler(LoggingMixin):
correspondent_id=correspondent.id if correspondent else None,
document_type_id=doc_type.id if doc_type else None,
tag_ids=tag_ids,
owner_id=rule.owner.id
if (rule.assign_owner_from_rule and rule.owner)
else None,
owner_id=(
rule.owner.id
if (rule.assign_owner_from_rule and rule.owner)
else None
),
)
consume_task = consume_file.s(