@@ -6,12 +6,17 @@ Handling permissions using Django's admin interface
6
6
7
7
*to be written*
8
8
9
+ .. note:: Django admin actions are available in Django 1.1 or later.
10
+
9
11
Apply permissions using Django's admin actions
10
12
==============================================
11
13
12
- .. note:: Django admin actions are available in Django 1.1 or later.
14
+ This feature is limited to superusers and users with either the
15
+ "Can change permission" (``change_permission``) or the
16
+ "Can change foreign permission" (``change_foreign_permission``) `permission`_.
13
17
14
18
.. image:: .static/admin-action-permission.png
19
+ .. _permission: http://docs.djangoproject.com/en/dev/topics/auth/#permissions
15
20
16
21
Disable the admin action site-wide
17
22
----------------------------------
@@ -22,13 +27,7 @@ One of your app ``admin.py`` files might be a good place::
22
27
admin.site.disable_action('edit_permissions')
23
28
24
29
Further informations are available in Django's documentation:
25
- `Disabling a site-wide action`_. If you encounter an error like::
26
-
27
- Exception Type: KeyError at /admin/weblog/entry/
28
- Exception Value: 'edit_permissions'
29
-
30
- Make sure you placed ``authority.autodiscover()`` before ``admin.autodiscover()``.
31
- See :ref:`configuration` for details.
30
+ `Disabling a site-wide action`_.
32
31
33
32
.. _Disabling a site-wide action: http://docs.djangoproject.com/en/dev/ref/contrib/admin/actions/#disabling-a-site-wide-action
34
33
@@ -48,4 +47,4 @@ action within the ``get_actions`` method. Here is an example::
48
47
Further informations are available in Django's documentation:
49
48
`Conditionally enabling or disabling actions`_.
50
49
51
- .. _Conditionally enabling or disabling actions: http://docs.djangoproject.com/en/dev/ref/contrib/admin/actions/#conditionally-enabling-or-disabling-actions
50
+ .. _Conditionally enabling or disabling actions: http://docs.djangoproject.com/en/dev/ref/contrib/admin/actions/#conditionally-enabling-or-disabling-actions
0 commit comments