From 6e0edd25093296d3f3c2c7ff5291e8e5174fa595 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 3 Oct 2022 13:46:12 +0200 Subject: Fix delete wizard with no "class_verbose_name" --- ishtar_common/wizards.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ishtar_common/wizards.py') diff --git a/ishtar_common/wizards.py b/ishtar_common/wizards.py index e5b8b55ba..2d000e423 100644 --- a/ishtar_common/wizards.py +++ b/ishtar_common/wizards.py @@ -1796,7 +1796,7 @@ class MultipleDeletionWizard(MultipleItemWizard): if field in res: data.append(res[field]) obj = self.current_objs[idx] - datas.append((f"{obj.class_verbose_name()} - {obj}", data)) + datas.append((f"{obj.class_verbose_name() if hasattr(obj, 'class_verbose_name') else ''} - {obj}", data)) return datas def get_context_data(self, form, **kwargs): -- cgit v1.2.3