|
|
|
|
@ -23,7 +23,8 @@ from core.views import ProtectedTemplateView |
|
|
|
|
from .forms import ( |
|
|
|
|
PasswordResetRequestForm, SetPasswordForm, RegistrationCompanyForm, |
|
|
|
|
AuthenticationForm, |
|
|
|
|
RegistrationForm) |
|
|
|
|
RegistrationForm |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
logger = logging.getLogger(__name__) |
|
|
|
|
|
|
|
|
|
@ -105,6 +106,7 @@ class RegistrationView(RegistrationViewBase): |
|
|
|
|
new_user = self.register(form) |
|
|
|
|
context = self.get_context_data() |
|
|
|
|
company_form = context.get('company_form') |
|
|
|
|
captcha_val = context.get('captcha') |
|
|
|
|
try: |
|
|
|
|
if company_form.is_valid(): |
|
|
|
|
company_form.save(user=new_user) |
|
|
|
|
|