Fix: Typo invalidates precondition for doctype, resulting in Exception (#4668)

Co-authored-by: Armin Gruner <agmuc.de>
This commit is contained in:
Armin Gruner 2023-11-23 20:19:11 +01:00 committed by GitHub
parent a3e6f7da94
commit b176fffb23

View File

@ -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 = (