From 247987acf353400c0b90bf78cbc29473ce7ad43c Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 13 Sep 2019 12:02:12 +0200 Subject: Manage delete action on sheet - delete action for persons --- ishtar_common/views.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ishtar_common/views.py') diff --git a/ishtar_common/views.py b/ishtar_common/views.py index 157f7ecc3..5a4abdc38 100644 --- a/ishtar_common/views.py +++ b/ishtar_common/views.py @@ -148,6 +148,14 @@ person_deletion_wizard = wizards.PersonDeletionWizard.as_view( label=_(u"Person deletion"), url_name='person_deletion',) + +def person_delete(request, pk): + person_deletion_wizard(request) + wizards.PersonDeletionWizard.session_set_value( + request, 'selec-person_deletion', 'pk', pk, reset=True) + return redirect(reverse('person_deletion', + kwargs={'step': 'final-person_deletion'})) + organization_search_wizard = wizards.OrganizationSearch.as_view( [('general-organization_search', forms.OrganizationFormSelection)], label=_(u"Organization search"), -- cgit v1.2.3