From a19a96eac60168f332dbc0203fbd2c0dad16b167 Mon Sep 17 00:00:00 2001 From: FUNNYDMAN Date: Mon, 12 Nov 2018 11:27:46 +0300 Subject: [PATCH] trying to fix problem with captcha --- eshop/accounts_ext/views.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/eshop/accounts_ext/views.py b/eshop/accounts_ext/views.py index f98d345..f673f0d 100644 --- a/eshop/accounts_ext/views.py +++ b/eshop/accounts_ext/views.py @@ -92,7 +92,6 @@ class RegistrationView(RegistrationViewBase): context = super().get_context_data(**kwargs) context['company_form'] = self.company_form context['title'] = RegistrationForm.title - context['captcha'] = RegistrationForm.captcha return context def post(self, request, *args, **kwargs): @@ -107,9 +106,6 @@ class RegistrationView(RegistrationViewBase): new_user = self.register(form) context = self.get_context_data() company_form = context.get('company_form') - captcha = context.get('captcha') - if captcha is None: - return self.form_invalid(form=form) try: if company_form.is_valid(): company_form.save(user=new_user)