title: Get method in Django's detailview
body: <p>This is my <code>industry_employeelist</code> detail view and it works perfectly.</p>
  <pre><code>class industry_employeelist(DetailView):
      model = Industry
      template_name = 'app/industry_employeelist.html'
  
      def get_queryset(self):
          return Industry.objects.filter(user=self.request.user)
  
      def get_object(self):
          return get_object_or_404(Industry, user=self.request.user)
  
      def get_context_data(self, **kwargs):
          context = super().get_context_data(**kwargs)
          this_industry = get_object_or_404(Industry.objects.filter(user=self.request.user))
          context['employeeList'] = self.object.employee_set.all()
          return context
  
      def post(self, request, *args, **kwargs):
          this_industry = get_object_or_404(Industry.objects.filter(user=request.user))
          this_name = request.POST['name']
          this_rank = request.POST['rank']
          this_email = request.POST['email']
          this_phone = request.POST['phone']
          this_nid = request.POST['nid']
          this_address = request.POST['address']
  
          employee_obj = Employee.objects.create(
              industry=this_industry, name=this_name, rank=this_rank, email=this_email,
              phone=this_phone, nid=this_nid, address=this_address
          )
          employee_obj.save()
  
          return redirect('app:industry_employeelist')
  </code></pre>
  <p>Now I want to make an auto-search suggestion for my project. Looking for a tutorial: <a href="https://www.youtube.com/watch?v=-oLVZp1NQVE" rel="nofollow noreferrer">youtubelink</a>, and <a href="https://jqueryui.com/autocomplete/" rel="nofollow noreferrer">Doc</a>. When I add the <code>get</code> method to the <code>industry_employeelist</code> detail-view it does not work anymore.</p>
  <pre><code>def get(self, request, *args, **kwargs):
    this_industry = get_object_or_404(Industry.objects.filter(user=request.user))
    if 'term' in request.GET:
        srckey = request.GET.get('term')
        suggession = this_industry.employee_set.all().filter(name__contains=srckey)
        sug_list = list()
        for i in suggession:
            sug_list.append(i.name)
            return JsonResponse(sug_list, safe=False)
    context = super().get_context_data(**kwargs)
  </code></pre>
  <p><strong>Please suggest how to fix it?</strong></p>