summaryrefslogtreecommitdiff
path: root/ishtar_common/wizards.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2022-05-10 17:39:17 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2022-07-08 09:58:50 +0200
commita6f67b92a07e711720e4f179c3561dd7e35cf68e (patch)
tree08ddeee941d984dda0e38af26282504a9295a6aa /ishtar_common/wizards.py
parentc6820144c9b1bf539c7edea644a33cc0c6e87d31 (diff)
downloadIshtar-a6f67b92a07e711720e4f179c3561dd7e35cf68e.tar.bz2
Ishtar-a6f67b92a07e711720e4f179c3561dd7e35cf68e.zip
Ishtar Common - Wizard: distinct info message for creation, modification (refs #5313)
Diffstat (limited to 'ishtar_common/wizards.py')
-rw-r--r--ishtar_common/wizards.py5
1 files changed, 4 insertions, 1 deletions
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 = '<i class="fa fa-info" aria-hidden="true"></i>&nbsp;&nbsp;'
- 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)