mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
Fixed #8060 - Added permissions-checking for admin inlines. Thanks p.patruno for report and Stephan Jaensch for work on the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16934 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
e2f9c11736
commit
b1b1da1eac
8 changed files with 341 additions and 72 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue