From ca82ee6644b4de0b2bea6c7e44fbfb245a40627c Mon Sep 17 00:00:00 2001 From: Nicolae Iosif Date: Tue, 30 Jul 2024 08:43:24 +0300 Subject: [PATCH] fix: fix an issue when creating new documents --- helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers.py b/helpers.py index db75ab1..1009e5b 100644 --- a/helpers.py +++ b/helpers.py @@ -132,7 +132,7 @@ def changeform_view( extra_context.update( { - "actions_submit_line": self.get_actions_submit_line(request, object_id=int(object_id)), + "actions_submit_line": self.get_actions_submit_line(request, object_id=int(object_id) if object_id is not None else None), "actions_detail": actions, } )