From d2019c240f803b79810e244bcda4b2c52ef05028 Mon Sep 17 00:00:00 2001 From: Armin Gruner Date: Thu, 23 Nov 2023 16:31:45 +0100 Subject: [PATCH] Fix: Typo invalidates precondition for doctype, resulting in Exception --- src/documents/consumer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/documents/consumer.py b/src/documents/consumer.py index 1c37ce1a3..47dba9412 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 = (