From f81394e1f339a8204ae6220ea0a5b16492cc1e67 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Mon, 11 Dec 2023 12:19:57 +0100 Subject: [PATCH] fix link to normal contract --- promotion/forms.py | 1 + promotion/templates/somconnexio_tarifes_mobil.html | 1 + promotion/views.py | 5 ++--- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/promotion/forms.py b/promotion/forms.py index d7af389..9ef48dc 100644 --- a/promotion/forms.py +++ b/promotion/forms.py @@ -61,3 +61,4 @@ class ContractForm(forms.Form): birthday = forms.CharField() gen = forms.CharField() lang = forms.CharField() + diff --git a/promotion/templates/somconnexio_tarifes_mobil.html b/promotion/templates/somconnexio_tarifes_mobil.html index e65b856..3016e59 100644 --- a/promotion/templates/somconnexio_tarifes_mobil.html +++ b/promotion/templates/somconnexio_tarifes_mobil.html @@ -529,6 +529,7 @@ bt_experiments["19676"] = {"name":"A\/B Test Home 3 variants (oct. 2013)","conve
+
El més preguntat
diff --git a/promotion/views.py b/promotion/views.py index 0ed4455..fbc6343 100644 --- a/promotion/views.py +++ b/promotion/views.py @@ -11,7 +11,7 @@ from promotion.forms import WalletForm, ContractForm class PromotionView(View): - template_name = "somconnexio_tarifes-mobil.html" + template_name = "somconnexio_tarifes_mobil.html" def get(self, request, *args, **kwargs): self.context = {} template = get_template( @@ -76,8 +76,7 @@ class ContractView(FormView): return kwargs def form_valid(self, form): - url = form.save() - return redirect(url) + return super().form_valid(form) def get_discount(self, code): if not code: