From c939106a35aebcbd62188b4704c82c96f4fc28bc Mon Sep 17 00:00:00 2001 From: "M.Ravi" Date: Mon, 16 Oct 2017 16:29:09 +0200 Subject: [PATCH] Prepare to handle delete card --- hosting/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hosting/views.py b/hosting/views.py index 5fcc44ba..5d3a13b9 100644 --- a/hosting/views.py +++ b/hosting/views.py @@ -565,6 +565,8 @@ class SettingsView(LoginRequiredMixin, FormView): return context def post(self, request, *args, **kwargs): + if 'delete_card' in request.POST: + return HttpResponseRedirect(reverse_lazy('hosting:settings')) form = self.get_form() if form.is_valid(): if 'billing-form' in request.POST: