title: How can I pass kwargs in URL in django
body: <p>In the django doc the url function is like this</p>
  
  <pre><code>url(regex, view, kwargs=None, name=None, prefix='')
  </code></pre>
  
  <p>I have this</p>
  
  <pre><code>url(r'^download/template/(?P&lt;object_id&gt;\d+)/$', views.myview().myfunction,model=models.userModel, name="sample")
  </code></pre>
  
  <p>This is my view</p>
  
  <pre><code>class myview(TemplateView):
  
      def myfunction(self,request, object_id, **kwargs):
          model = kwargs['model']
  </code></pre>
  
  <p>I get this error</p>
  
  <pre><code>url() got an unexpected keyword argument 'model'
  </code></pre>