Udemezue John
Udemezue John

Reputation: 68

i need help overriding user registration field in django rest auth package

My custom user model requires the full_name email and password in order to authenticate and the Django rest auth displays only fields for username email and two passwords fields. I was able to override it by declaring my own serializer and it worked. But I get this error saying:

save() takes 1 positional argument but 2 were given

{
    "username": "",
    "email": "",
    "password1": "",
    "password2": ""
}

save() takes 1 positional argument but 2 were given

Exception Location: C:\Users\zeus\Desktop\alihub-back\env\lib\site-packages\rest_auth\registration\views.py in perform_create, line 73

Upvotes: 0

Views: 343

Answers (1)

shafikshaon
shafikshaon

Reputation: 6404

You may try this link

If the problem not solved. Add what you try

Upvotes: 0

Related Questions