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)

Image of Datadog

Create and maintain end-to-end frontend tests

Learn best practices on creating frontend tests, testing on-premise apps, integrating tests into your CI/CD pipeline, and using Datadog’s testing tunnel.

Download The Guide

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay