code: def get_object(self):
          
          queryset = self.get_queryset()             # Get the base queryset
          queryset = self.filter_queryset(queryset)  # Apply any filter backends
          filter = {}  # pylint: disable=W0622
          for field in self.lookup_fields:
              filter[field] = self.kwargs[field]
          return get_object_or_404(queryset, **filter)
docs: Returns an object instance that should be used for detail views.