mirror of
https://github.com/narrrl/holy-flavor-rater.git
synced 2026-11-04 17:07:01 +01:00
updated ui for user specific content
This commit is contained in:
1 parent
860858e384
commit
3e8e71fc02
4 files changed
+236
-128
No files matched your search
@@ -153,7 +153,8 @@ class UserViewSet(viewsets.ModelViewSet):
|
||||
return Response({
|
||||
'username': user.username,
|
||||
'theme': user.theme,
|
||||
'ratings': RatingSerializer(ratings, many=True).data
|
||||
'avatar': request.build_absolute_uri(user.avatar.url) if user.avatar else None,
|
||||
'ratings': RatingSerializer(ratings, many=True, context={'request': request}).data
|
||||
})
|
||||
|
||||
@action(detail=False, methods=['get'])
|
||||
|
||||
Reference in new issue
Block a user