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)
Hi welcome to DEV.to.
I see your question was removed, but when I quickly search online I can find things like this StackOverflow
Where the user uses:
self
is not counter in Python if I remember correctly, so then it has to arguments.Can you else post some more code here? Or is this already solved?