From b8517e71ef80647740ddecd93fc5baeb9c775257 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 6 Mar 2023 19:22:41 +0100 Subject: Administrative act: add a warning when associated item is deleted (refs #4554) --- .../ishtar/wizard/wizard_delete_associated_to_admin_act.html | 5 +++++ ishtar_common/wizards.py | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 ishtar_common/templates/ishtar/wizard/wizard_delete_associated_to_admin_act.html (limited to 'ishtar_common') diff --git a/ishtar_common/templates/ishtar/wizard/wizard_delete_associated_to_admin_act.html b/ishtar_common/templates/ishtar/wizard/wizard_delete_associated_to_admin_act.html new file mode 100644 index 000000000..c1284b94d --- /dev/null +++ b/ishtar_common/templates/ishtar/wizard/wizard_delete_associated_to_admin_act.html @@ -0,0 +1,5 @@ +{% extends "ishtar/wizard/delete_wizard.html" %} +{% load i18n %} +{% block "extra_warning" %} +

{% trans "If any, all administrative act listed above will be deleted." %}

+{% endblock %} diff --git a/ishtar_common/wizards.py b/ishtar_common/wizards.py index aa3ef68ab..c2383e2de 100644 --- a/ishtar_common/wizards.py +++ b/ishtar_common/wizards.py @@ -1944,7 +1944,6 @@ class IshtarUserDeletionWizard(MultipleDeletionWizard): def get_formated_datas(self, forms): datas = super(IshtarUserDeletionWizard, self).get_formated_datas(forms) - print(self.current_objs, datas) for idx, values in enumerate(datas): obj = self.current_objs[idx] datas[idx][1].append((_("Username"), obj.user_ptr.username)) -- cgit v1.2.3