title: Django TypeError 'method' object is not subscriptable
body: <p>I'm going through django tutorial and having the TypeError 'method' object is not subscriptable. The error is thrown when the following code executed</p>
  
  <pre><code>class ProductListView(ListView):
      model = Product
      queryset = Product.objects.all()
  
      def get_context_data(self, *args, **kwargs):
          context = super(ProductListView, self).get_context_data(*args, **kwargs)
          context["now"] = timezone.now()
          context["query"] = self.request.GET.get["q"]
          return context
  
      def get_queryset(self, *args, **kwargs):
          print(self.request)
          qs = super(ProductListView, self).get_queryset(*args, **kwargs)
          query = self.request.GET.get["q"]
          if query:
              qs = self.model.objects.filter(
                  Q(title__icontains=query) |
                  Q(description__icontains=query)
              )
              try:
                  qs2 = self.model.objects.filter(
                      Q(price=query)
                  )
                  qs = (qs | qs2).distinct()
              except:
                  pass
          return qs
  </code></pre>
  
  <p>The problem line is <code>query = self.request.GET.get["q"]</code></p>
  
  <p>How do I solve this issue?</p>