こんにちは、私の pk としてDRF RETRIEVEAPIVIEW
使用して特定のオブジェクトを取得したいのですが、取得していますUUID
{
"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"),
これを解決する方法について何か助けはありますか?