diff --git a/src/postorius/templates/postorius/domain/confirm_delete.html b/src/postorius/templates/postorius/domain/confirm_delete.html index cc5545f..e58c750 100644 --- a/src/postorius/templates/postorius/domain/confirm_delete.html +++ b/src/postorius/templates/postorius/domain/confirm_delete.html @@ -15,7 +15,7 @@

{% trans 'Are you sure you want to permanently delete this domain?' %}

-
+ {% csrf_token %} {% trans 'Cancel' %} diff --git a/src/postorius/views/domain.py b/src/postorius/views/domain.py index b991fe2..c6750ff 100644 --- a/src/postorius/views/domain.py +++ b/src/postorius/views/domain.py @@ -84,6 +84,4 @@ messages.error(request, _('The domain could not be deleted: %s' % e.msg)) return redirect("domain_index") - submit_url = reverse('domain_delete', kwargs={'domain': domain}) - return render(request, 'postorius/domain/confirm_delete.html', - {'domain': domain, 'submit_url': submit_url}) + return render(request, 'postorius/domain/confirm_delete.html', {'domain': domain,})