From 0044979f420102dde6b876ec7a9e986e9c62cda7 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 12 May 2014 21:21:04 +0200 Subject: Person and organization deletion (refs #1675) * add associated actions, wizards, forms * prevent deletion of associted items (operations, files, etc.) * give list of associated items before deletion and give access to these items --- ishtar_common/forms.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ishtar_common/forms.py') diff --git a/ishtar_common/forms.py b/ishtar_common/forms.py index 5faa232fb..9c81fa04b 100644 --- a/ishtar_common/forms.py +++ b/ishtar_common/forms.py @@ -75,6 +75,10 @@ class FinalForm(forms.Form): final = True form_label = _(u"Confirm") +class FinalDeleteForm(FinalForm): + confirm_msg = " " + confirm_end_msg = _(u"Are you sure you want to delete?") + class FormSet(BaseFormSet): def check_duplicate(self, key_names, error_msg=""): """Check for duplicate items in the formset""" -- cgit v1.2.3