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: