UserSignupForm.custom_signup() takes 2 positional arguments but 3 were given

Vicente G. Reyes - Apr 17 '23 - - Dev Community

I extended django-allauth's UserSignUpForm for a custom form upon signup but I got an error when I signed up in my local development server.

UserSignupForm.custom_signup() takes 2 positional arguments but 3 were given

Here's my form

class UserSignupForm(SignupForm)
    type = forms.ChoiceField(choices=[("RECRUITER", "Recruiter"), ("SEEKER", "Seeker")])

    def custom_signup(self, user):
        user.type =
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Terabox Video Player