我在generic.views上使用了这个Accessmixin: """Verify that the current user is authenticated and is an organisor.""" if not request.user.is_authenticated or not request.user
对于正常函数,它工作得很好,但是当我尝试在我的UpdateView中使用它时,我得到了这个错误"AttributeError: 'function' object has no attribute 'as_view'"@login_required model = Room
fields = ['Name', '