The official documentation explains how to decorate a class based view, however I could not find any information on how to provide parameters to the decorator.
I would like to achieve something like
class MyView(View):
@method_decorator(mydecorator, some_parameters)
def dispatch(self, *args, **kwargs):
return super(MyView, self).dispatch(*args, **kwargs)
which should be equivalent to
@mydecorator(some_parameters)
def my_view(request):
....
How do I deal with such cases?