title: how to fix: typeerror: 'Catg_id' is an invalid keyword argument
body: <p>On running the above code, i get error:</p>
  
  <pre><code>TypeError: 'Catg_id' is an invalid keyword argument for this function" for the function named as 'ch' above. 
  </code></pre>
  
  <p>How to fix this error?</p>
  
  <pre><code>from categories.models import Catg, Type, Product, Choice
  from django.shortcuts import render
  
  def ch(request, Type_id, Product_id, Catg_id):
      ca = Catg.objects.get(pk=Catg_id)
      p = Type.objects.get(pk=Type_id)
      cho = Product.objects.get(pk=Product_id)
      alls = Choice.objects.all()
      context3 = {
          'p': p,
          'alls': alls,
          'cho': cho,
          'ca': ca,
      }
      return render(request, "service providers.html", context3)
  </code></pre>
  
  <p>ALSO IN URLS.PY</p>
  
  <pre class="lang-py prettyprint-override"><code>url(r'^categories/(?P&lt;Catg_id&gt;[0-9])/(?P&lt;Type_id&gt;[0-9]+)/(?P&lt;Product_id&gt;[0-9]+)/$', views.Choice, name='choice'),
  </code></pre>
  
  <p>AND IN MODELS.PY</p>
  
  <pre class="lang-py prettyprint-override"><code>class Choice(models.Model):
      chname = models.ForeignKey(Product, on_delete=models.CASCADE)
      chn = models.CharField(max_length=1000, default=" ")
  
  
      def __str__(self):
          return self.chn
  </code></pre>