api.v1.views.UserProfileView module¶
Module with the UserProfileViewSet viewset.
- class api.v1.views.UserProfileView.UserProfileView(**kwargs)[source]¶
Bases:
RetrieveUpdateAPIViewView for retrieving and updating the users
eonvelope.models.UserProfile.- NAME = 'profile'¶
- serializer_class¶
alias of
UserProfileSerializer
- permission_classes = [<class 'rest_framework.permissions.IsAuthenticated'>]¶
- get_object()[source]¶
Fetches the profile connected to the request user.
- Return type:
- Returns:
The UserProfile model of the request user.
- retrieve(request, *args, **kwargs)¶
- update(request, *args, **kwargs)¶