code: def get_object(self, view_name, view_args, view_kwargs):
          
          lookup_value = view_kwargs[self.lookup_url_kwarg]
          lookup_kwargs = {self.lookup_field: lookup_value}
          return self.get_queryset().get(**lookup_kwargs)
docs: Return the object corresponding to a matched URL.
  
          Takes the matched URL conf arguments, and should return an
          object instance, or raise an `ObjectDoesNotExist` exception.