How to make Django admin site accessed by non-staff user?

后端 未结 2 1444
说谎
说谎 2021-02-06 10:53

I would like to implement a 2nd admin site which provides a subset of feature of the primary admin site. That\'s possible and described in the Django docs

However, I wou

2条回答
  •  名媛妹妹
    2021-02-06 11:44

    What's wrong with this approach? Any idea how to implement this feature?

    What's wrong with this approach is that permissions and groups can already provide you with what you need. There is no need to subclass AdminSite if all you need is to divide users.

    This is probably why this feature is so poorly documented, IMHO

提交回复
热议问题