From a6f67b92a07e711720e4f179c3561dd7e35cf68e Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 10 May 2022 17:39:17 +0200 Subject: Ishtar Common - Wizard: distinct info message for creation, modification (refs #5313) --- ishtar_common/wizards.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ishtar_common/wizards.py') diff --git a/ishtar_common/wizards.py b/ishtar_common/wizards.py index 16be0bae5..e5b8b55ba 100644 --- a/ishtar_common/wizards.py +++ b/ishtar_common/wizards.py @@ -1033,7 +1033,10 @@ class Wizard(IshtarWizard): self.post_save() msg = '  ' - msg += str(_("{} created/modified.")).format(obj) + if getattr(self, "modification", False): + msg += str(_("{} modified.")).format(obj) + else: + msg += str(_("{} created.")).format(obj) messages.add_message(self.request, messages.INFO, msg) if self.redirect_url: url = reverse(self.redirect_url) -- cgit v1.2.3