How to enforce account based separation in Django

前端 未结 5 778
一向
一向 2020-12-30 18:16

I have a Django app which has a single-account model. We are converting this to be multi-account, so almost every model will have a ForeignKey(Account).

5条回答
  •  醉酒成梦
    2020-12-30 18:33

    This snippet might put you in the right direction. I believe row level permissions are on the todo list for 1.2 also, not 100% sure on that one though.

提交回复
热议问题