fix: fix: + ratio
This commit is contained in:
parent
d8a279f4d8
commit
2ccfc5464a
@ -17,7 +17,7 @@ class ProfileViewSet(viewsets.ModelViewSet):
|
||||
permission_classes = (permissions.IsAuthenticatedOrReadOnly,)
|
||||
|
||||
def retrieve(self, request: HttpRequest, pk=None):
|
||||
instance = self.get_object()
|
||||
instance = ProfileModel.objects.get(pk=pk)
|
||||
instance.avatar_url.name = instance.avatar_url.name[instance.avatar_url.name.find("static") - 1:]
|
||||
return Response(self.serializer_class(instance).data,
|
||||
status=status.HTTP_200_OK)
|
||||
|
Loading…
Reference in New Issue
Block a user