def require_authentication_permission(permission): def decorator(cls): cls.dispatch = method_decorator( permission_required( permission, raise_exception=True) )(cls.dispatch) cls2 = class_login_required(cls) return cls2 return decoratorIn this case, the execution order is:
- class_login_required
- permission_required
0 comments:
Post a Comment