

def __init__(self, *args, **kwargs):
    super(AuthenticationForm, self).__init__(*args, **kwargs)
    usermodel = get_user_model()
    self.username_field = usermodel._meta.get_field(usermodel.USERNAME_FIELD)
    field = self.fields.get('username')
    field.widget = TextInput(attrs={
        'placeholder': _('Username'),
        'class': 'form-control',
    })
    field = self.fields.get('password')
    field.widget = PasswordInput(attrs={
        'placeholder': _('Password'),
        'class': 'form-control',
    })

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