title: Function decorators with parameters on a class based view in Django
body: <p>The official <a href="https://docs.djangoproject.com/en/1.7/topics/class-based-views/intro/#decorating-the-class" rel="noreferrer">documentation</a> explains how to decorate a class based view, however I could not find any information on how to provide <strong>parameters</strong> to the decorator.</p>
  
  <p>I would like to achieve something like</p>
  
  <pre><code>class MyView(View):
      @method_decorator(mydecorator, some_parameters)
      def dispatch(self, *args, **kwargs):
          return super(MyView, self).dispatch(*args, **kwargs)
  </code></pre>
  
  <p>which should be equivalent to</p>
  
  <pre><code>@mydecorator(some_parameters)
  def my_view(request):
      ....
  </code></pre>
  
  <p>How do I deal with such cases?</p>