2018年12月13日
摘要: 要将login_required装饰到view class的dispatch方法上, 因为dispatch方法为类方法,不是单个的函数,所以需要将装饰函数的装饰器 login_required转化为装饰类方法的装饰器,就要用到method_decorator . method_decorator的参 阅读全文
posted @ 2018-12-13 18:10 庭明 阅读(775) 评论(0) 推荐(0) 编辑