code: def get_object(self, request):
          
          pattern = request.GET.get('pattern', '')
          if len(pattern) < 3:
              raise ObjectDoesNotExist
          return pattern
docs: The GET parameter 'pattern' is the object.