Greetings I am trying to find a way to implement "view only user group" for selected models at the django admin site. In details, when a selected user of a group logs in, he/she can only browse and see allowed model entries.
你好,我正在努力为django管理站点上选定的模型找到一种实现“只查看用户组”的方法。具体来说,当一个组的选定用户登录时,他/她只能浏览和查看允许的模型条目。
Thanks
谢谢
2 个解决方案
#1
2
Write decorator to allow access to certain model for a member of a specific group.
编写decorator,以允许访问特定组的成员的特定模型。
#2
0
I'm looking for the same.
我也在找一样的东西。
I've seen a reference to a patch that claims to add this feature:
我看到一个补丁声称添加了这个功能:
http://www.alextreme.org/drupal/?q=django-view-permissions-patch
http://www.alextreme.org/drupal/?q=django-view-permissions-patch
Here's another approach:
这是另一个方法:
http://gremu.net/blog/2010/django-admin-read-only-permission/
http://gremu.net/blog/2010/django-admin-read-only-permission/
(I have not yet tried it, but will report back here if I do.)
(我还没试过,但如果试了,我会在这里报告。)
Note this page on the philosophy behind django-admin not providing this on its own:
请注意django-admin背后的哲学页面,并不是自己提供的:
http://www.djangobook.com/en/1.0/chapter17/
http://www.djangobook.com/en/1.0/chapter17/
#1
2
Write decorator to allow access to certain model for a member of a specific group.
编写decorator,以允许访问特定组的成员的特定模型。
#2
0
I'm looking for the same.
我也在找一样的东西。
I've seen a reference to a patch that claims to add this feature:
我看到一个补丁声称添加了这个功能:
http://www.alextreme.org/drupal/?q=django-view-permissions-patch
http://www.alextreme.org/drupal/?q=django-view-permissions-patch
Here's another approach:
这是另一个方法:
http://gremu.net/blog/2010/django-admin-read-only-permission/
http://gremu.net/blog/2010/django-admin-read-only-permission/
(I have not yet tried it, but will report back here if I do.)
(我还没试过,但如果试了,我会在这里报告。)
Note this page on the philosophy behind django-admin not providing this on its own:
请注意django-admin背后的哲学页面,并不是自己提供的:
http://www.djangobook.com/en/1.0/chapter17/
http://www.djangobook.com/en/1.0/chapter17/