Custom permissions in Django REST API don't raise any error even when print() function returns False in the terminal

后端 未结 0 553
谎友^
谎友^ 2021-01-31 03:51

I wrote a permission:

class IsParticipant(permissions.BasePermission):
  def has_permission(self, request, view):
     return True

  def has_object_permission(se         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题