summaryrefslogtreecommitdiff
path: root/ishtar_common
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common')
-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 d7188faf5..2cf7a1b9c 100644
--- a/ishtar_common/wizards.py
+++ b/ishtar_common/wizards.py
@@ -1083,7 +1083,10 @@ class Wizard(IshtarWizard):
if getattr(self, "modification", False):
msg += str(_("{} modified.")).format(obj)
else:
- msg += str(_("{} created.")).format(obj)
+ lbl = str(obj)
+ if not lbl and hasattr(obj, "_generate_cached_label"):
+ lbl = obj._generate_cached_label()
+ msg += str(_("{} created.")).format(lbl)
messages.add_message(self.request, messages.INFO, msg)
if self.redirect_url:
url = reverse(self.redirect_url)