DEV Community

Vicente G. Reyes
Vicente G. Reyes

Posted on

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

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 =

Top comments (1)

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up