Django permissions: custom logic-based checks

前端 未结 0 1996
误落风尘
误落风尘 2021-02-11 22:45

Simplified example:

# foo/models.py
class Bar(models.Model):
    author = models.ForeignKey(User)

# foo/views.py
class BarEditView(PermissionRequiredMixin, Updat         


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