title: django classbased view not accepting view_args and view_kwargs
body: <p>I am using django 1.8. I am using <code>django.views.generic.View</code> class in one of my View.  </p>
  
  <pre><code>class CommonView(View):
      func_name = 'view_func'
      http_method_names = ["get", "post"]
      def get(self, request, *args, **kwargs):
          return render(request, 'template.html', {})
  </code></pre>
  
  <p>in urls.py i added</p>
  
  <pre><code>url(r'^common/$',CommonView),
  </code></pre>
  
  <p>I have written a middleware where i am doing some work with view response and overridden <code>process_view</code> method  </p>
  
  <pre><code>class CommonMiddleware(object):
      def process_view(self, request, view_func, view_args, view_kwargs):
          response = view_func(request, *view_args, **view_kwargs)
          """ Do something"""
          return response
  </code></pre>
  
  <p>but in this line <code>response = view_func(request, *view_args, **view_kwargs)</code> I am getting error  </p>
  
  <pre><code>__init__() takes exactly 1 argument (3 given)
  Request Method: POST
  Request URL:    http://127.0.0.1:8000/common/
  Django Version: 1.8
  Exception Type: TypeError
  Exception Value:    
  __init__() takes exactly 1 argument (3 given)
  </code></pre>
  
  <p>and before it I have to check the <code>func_name</code> of the view function. But in the middle ware class when i am trying to get the <code>func_name</code> attribute from <code>view_func</code> at that time I am getting an <code>AttributeError</code> that <code>CommonView has no attribute func_name</code> whereas I am getting it from all the function based views. </p>