

def __init__(self, *args, **kwargs):
    super(PasswordChangeForm, self).__init__(*args, **kwargs)
    field = self.fields.get('old_password')
    field.widget = PasswordInput(attrs={
        'placeholder': _('Old Password'),
        'class': 'form-control',
    })
    field = self.fields.get('new_password1')
    field.widget = PasswordInput(attrs={
        'placeholder': _('New Password'),
        'class': 'form-control',
    })
    field = self.fields.get('new_password2')
    field.widget = PasswordInput(attrs={
        'placeholder': _('New Password confirmation'),
        'class': 'form-control',
    })

dataset/ETHPy150Open django-bmf/django-bmf/djangobmf/account/forms.py BMFPasswordChangeForm.__init__/original