code: def results(self, request):
          "Match results to given term and return the serialized HttpResponse."
          results = {}
          form = self.form(request.GET)
          if form.is_valid():
              options = form.cleaned_data
              term = options.get('term', '')
              raw_data = self.get_query(request, term)
              results = self.format_results(raw_data, options)
          return self.response(resultsf results(self, request):
          "Match results to given term and return the serialized HttpResponse."
          results = {}
          form = self.form(request.GET)
          if form.is_valid():
              options = form.cleaned_data
              term = options.get('term', '')
              raw_data = self.get_query(request, term)
              results = self.format_results(raw_data, options)
          return self.response(results)
docs: Match results to given term and return the serialized HttpResponse.