Quick Django Class Based View Decorator
The recommended way to add decorators such as login_required to class based views in Django is a bit verbose. Here’s a little metaclass-producing function you may find handy:
def DecoratedDispatchMethod(actual_decorator): """ If you want to decorate the Class-based View with, …