From: Armin Gruner Date: Thu, 23 Nov 2023 19:19:11 +0000 (+0100) Subject: Fix: Typo invalidates precondition for doctype, resulting in Exception (#4668) X-Git-Tag: v2.0.0~3^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c4dfc3c6eaa599d2213ffa2243980099f8d2f95;p=thirdparty%2Fpaperless-ngx.git Fix: Typo invalidates precondition for doctype, resulting in Exception (#4668) Co-authored-by: Armin Gruner --- diff --git a/src/documents/consumer.py b/src/documents/consumer.py index 1c37ce1a35..47dba94125 100644 --- a/src/documents/consumer.py +++ b/src/documents/consumer.py @@ -657,7 +657,7 @@ class Consumer(LoggingMixin): ) doc_type_name = ( DocumentType.objects.get(pk=self.override_document_type_id).name - if self.override_correspondent_id is not None + if self.override_document_type_id is not None else None ) owner_username = (