Remove (or hide) default Permissions from Django

前端 未结 8 1164
醉酒成梦
醉酒成梦 2021-01-30 17:53

I\'m developing a Django app that will have two administration backends. One for daily use by \"normal\" users and the default one for more advanced tasks and for the developers

8条回答
  •  一向
    一向 (楼主)
    2021-01-30 18:33

    Built on top of the solution by @pmdarrow, I've come up with a relatively clean solution to patch the Django admin views.

    See: https://gist.github.com/vdboor/6280390

    It extends the User and Group admin to hide certain permissions.

提交回复
热议问题