I need to call the following url: users/:user_pk/photos/:photo_pk/
To get only the photos related to the user having id=user_pk if the user exists, I have to extend the get_queryset method to be able to raise NotFound exception if no user with id=user_pk exists.
Which is the best way to manage it since I'm performing a query on the DB and the get_queryset method is only sync in GenericAPIView, GenericViewSet, etc?