From 6b85053eb23bd4ec43044fc23fac13fc4e45fa4c Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 3 Dec 2021 11:27:56 +0100 Subject: Documents - add a sub-document from sheet: refactoring, use GET parameters instead of url parameters (refs #5172) --- ishtar_common/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ishtar_common/models.py') diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 197ac5dcc..c8056a4ab 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -4214,10 +4214,10 @@ class Document( if can_create_document: actions += [ ( - reverse("create-document-source", args=[self.pk]), - _("Add document with source parent"), + reverse("create-document") + f"?source_pk={self.pk}", + _("Add sub-document"), "fa fa-plus", - _("Doc./src"), + _("sub-document"), "", False, ) -- cgit v1.2.3