Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PUT /rest-auth/user/ sets is_active to False #265

Open
rocchidavide opened this issue Oct 10, 2016 · 0 comments
Open

PUT /rest-auth/user/ sets is_active to False #265

rocchidavide opened this issue Oct 10, 2016 · 0 comments

Comments

@rocchidavide
Copy link

I can't understand why if I try to edit my user profile with:

PUT http://127.0.0.1:8000/rest-auth/user/
Headers
Authorization token

Body
first_name A name changed
email My email

I get back my user info (i use a Custom User with a custom serializer), but is_active is set to false, and furthermore first_name is not changed.

Here my custom serializer:

from rest_auth.serializers import UserDetailsSerializer
from django.contrib.auth import get_user_model


class UserSerializer(UserDetailsSerializer):
    class Meta:
        model = get_user_model()
        exclude = ('password', 'is_superuser', 'is_staff')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant