diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/contrib/admin/index.txt | 8 | ||||
| -rw-r--r-- | docs/releases/1.4.txt | 9 |
2 files changed, 16 insertions, 1 deletions
diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt index fbe4c2a741..02e539e6f2 100644 --- a/docs/ref/contrib/admin/index.txt +++ b/docs/ref/contrib/admin/index.txt @@ -1391,11 +1391,17 @@ adds some of its own (the shared features are actually defined in the - :attr:`~ModelAdmin.ordering` - :meth:`~ModelAdmin.queryset` +.. versionadded:: 1.4 + +- :meth:`~ModelAdmin.has_add_permission` +- :meth:`~ModelAdmin.has_change_permission` +- :meth:`~ModelAdmin.has_delete_permission` + The ``InlineModelAdmin`` class adds: .. attribute:: InlineModelAdmin.model - The model in which the inline is using. This is required. + The model which the inline is using. This is required. .. attribute:: InlineModelAdmin.fk_name diff --git a/docs/releases/1.4.txt b/docs/releases/1.4.txt index 5580b67dce..6a97060f40 100644 --- a/docs/releases/1.4.txt +++ b/docs/releases/1.4.txt @@ -128,6 +128,15 @@ A new :meth:`~django.contrib.admin.ModelAdmin.save_related` hook was added to :mod:`~django.contrib.admin.ModelAdmin` to ease the customization of how related objects are saved in the admin. +Admin inlines respect user permissions +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Admin inlines will now only allow those actions for which the user has +permission. For ``ManyToMany`` relationships with an auto-created intermediate +model (which does not have its own permissions), the change permission for the +related model determines if the user has the permission to add, change or +delete relationships. + Tools for cryptographic signing ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
