override django-allauth default forms

Viewed 3692

I want to override the default forms of django-allauth in order to change\add default widget attributes, class variables without changing the initial code of allauth form. How can I do that?

My workspace:
1) installed django-allauth, as a package through pip;
2) configured settings, according to the recommendations of the project on github;
3) locally created templates signin, signup;
4) created forms.py, which defines a child class forms django-allauth

from allauth.account import SigninForm

class mySigninForm (SigninForm):
     username = ...//override variable

Is this right way?

Thanks!

2 Answers
Related