diff options
author | Artur Smęt <artur.smet@mirumee.com> | 2017-01-23 13:25:25 +0100 |
---|---|---|
committer | Artur Smęt <artur.smet@mirumee.com> | 2017-01-23 13:25:25 +0100 |
commit | 8d08452304da0bb1136b8f731d0e80a7c05fd30e (patch) | |
tree | dccca4c4b622e8c9bc60081a3493cdefb73cb939 /saleor/userprofile | |
parent | 578b165f1a8c949a318c05ec26ca5a0a0af580b2 (diff) | |
download | saleor-frontend-8d08452304da0bb1136b8f731d0e80a7c05fd30e.tar.gz saleor-frontend-8d08452304da0bb1136b8f731d0e80a7c05fd30e.tar.bz2 saleor-frontend-8d08452304da0bb1136b8f731d0e80a7c05fd30e.zip |
Remove placeholders on change password form. Closes #791
Diffstat (limited to 'saleor/userprofile')
-rw-r--r-- | saleor/userprofile/forms.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/saleor/userprofile/forms.py b/saleor/userprofile/forms.py index 5552630a..af119e14 100644 --- a/saleor/userprofile/forms.py +++ b/saleor/userprofile/forms.py @@ -56,6 +56,8 @@ class ChangePasswordForm(UserForm): def __init__(self, *args, **kwargs): super(ChangePasswordForm, self).__init__(*args, **kwargs) self.fields['password1'].user = self.user + self.fields['oldpassword'].widget.attrs['placeholder'] = '' + self.fields['password1'].widget.attrs['placeholder'] = '' def clean_oldpassword(self): if not self.user.check_password(self.cleaned_data.get('oldpassword')): |