Revision 7b4ca7fe
b/snf-astakos-app/astakos/im/forms.py | ||
---|---|---|
1030 | 1030 |
password, email = True, True |
1031 | 1031 |
profile = super(ExtendedProfileForm, self).is_valid() |
1032 | 1032 |
if profile and self.cleaned_data.get('change_password', None): |
1033 |
self.fields['new_email_address'].required = True |
|
1033 |
|
|
1034 | 1034 |
password = self.password_change_form.is_valid() |
1035 | 1035 |
self.save_extra_forms.append('password') |
1036 | 1036 |
if profile and self.cleaned_data.get('change_email'): |
1037 |
self.fields['new_email_address'].required = True |
|
1037 | 1038 |
email = self.email_change_form.is_valid() |
1038 | 1039 |
self.save_extra_forms.append('email') |
1039 | 1040 |
|
Also available in: Unified diff