From 86c931cde15c164dc99435946f26a667e1063024 Mon Sep 17 00:00:00 2001 From: "M.Ravi" Date: Sun, 8 Oct 2017 19:24:58 +0200 Subject: [PATCH] Remove prefixes for billing_address_forms --- datacenterlight/views.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/datacenterlight/views.py b/datacenterlight/views.py index 4b26da6d..c9732c5c 100644 --- a/datacenterlight/views.py +++ b/datacenterlight/views.py @@ -351,17 +351,14 @@ class PaymentOrderView(FormView): if self.request.user.is_authenticated(): if billing_address_data: billing_address_form = BillingAddressForm( - prefix='billing_address_form', initial=billing_address_data ) else: billing_address_form = BillingAddressForm( - prefix='billing_address_form', - instance=self.request.user.billing_addresses.first() - ) + instance=self.request.user.billing_addresses.first() + ) else: billing_address_form = BillingAddressFormSignup( - prefix='billing_address_form_signup', initial=billing_address_data ) @@ -398,12 +395,10 @@ class PaymentOrderView(FormView): if request.user.is_authenticated(): address_form = BillingAddressForm( data=request.POST, - prefix='billing_address_form' ) else: address_form = BillingAddressFormSignup( data=request.POST, - prefix='billing_address_form_signup' ) if address_form.is_valid(): token = address_form.cleaned_data.get('token')