docs: def decode_did(f):
      """View handler decorator that decodes "%2f" ("/") in SID or PID extracted from URL
      path segment by Django."""
  
      @functools.wraps(f)
      def wrapper(request, did, *args, **kwargs):
          return f(request, decode_path_segment(did), *args, **kwargs)
  
      return wrapper