Как получить данные с помощью uuid в drf

halo ребята я хочу получить определенный объект используя DRF RETRIEVEAPIVIEW используя UUID как мой pk но я получаю

{
    "detail": "Not found."
}

ниже приведена моя APIVIEW и url

class RetrieveProfile(generics.RetrieveAPIView):
    lookup_field = 'id'
    serializer_class = UserProfileSerializer
    permission_classes = [IsAuthenticatedOrReadOnly]
    queryset = UserProfile.objects.all()
    path('<uuid:id>/display',RetrieveProfile.as_view(), name="display-profile"),

помогите, как решить эту проблему?

Вернуться на верх