Django: Adding Permission to an Specific Model Instance

后端 未结 2 1728
感情败类
感情败类 2021-02-19 17:34

I am looking for the best way to implement user permissions to allow users to edit specific model instances.

For instance, I have such two models:

model          


        
2条回答
  •  星月不相逢
    2021-02-19 17:56

    You are looking for an object permission implementation. A good comparison is here: http://djangopackages.com/grids/g/perms/

    Shameless plug: Heres my fork of a very popular per-object permission app: http://github.com/azizmb/django-authority

提交回复
热议问题