|
|
|
|
@ -213,11 +213,9 @@ class UserView(TemplateView): |
|
|
|
|
'home_form': HomeForm(instance=profile), 'work_form': WorkForm(instance=user), |
|
|
|
|
'about_company_form': AboutCompanyForm(instance=profile), 'phone_form': PhoneForm(instance=profile), |
|
|
|
|
'email_form': EmailForm(instance=user), 'web_page_form': WebPageForm(instance=profile), |
|
|
|
|
'social_form': SocialForm(instance=profile), 'about_form': AboutForm(instance=profile) |
|
|
|
|
'social_form': SocialForm(instance=profile), 'about_form': AboutForm(instance=profile), |
|
|
|
|
'company_form': CreateCompanyForm() |
|
|
|
|
} |
|
|
|
|
if not user.company: |
|
|
|
|
company_form = {'company_form': CreateCompanyForm()} |
|
|
|
|
context.update(company_form) |
|
|
|
|
|
|
|
|
|
context.update(profile_forms) |
|
|
|
|
|
|
|
|
|
|