[Django]-Getting a "bound method" error with my login form

4👍

I think the problem is you are using ModefForm for login view. ModelForm performs validation the model instance which throws non-unique error.
Try to use simple form like this:

class UserLoginForm(forms.Form):
    username = forms.CharField(max_length=25)
    password = forms.CharField(widget=forms.PasswordInput)

Leave a comment