【发布时间】:2018-01-23 09:16:14
【问题描述】:
我正在使用 dry-rest-permission 包为 django webService 编写身份验证。当我编写与包文档相同的权限方法时,我遇到内部服务器错误,并且:'bool' object is not callable
这是我的方法:
@staticmethod
@authenticated_users
def has_create_permission(request):
return True
【问题讨论】:
-
发布您的完整回溯,而不仅仅是异常消息本身。
标签: django authentication django-rest-framework