mirror of
https://github.com/django/django.git
synced 2025-04-22 00:04:43 +00:00
[2.0.x] Added backticks around obj argument in admin docs.
Backport of f5c6fc045a1fbe2e7bbe026dc4f0c1b94b698ec7 from master
This commit is contained in:
parent
35cbb0baf4
commit
484d2a6894
@ -1845,19 +1845,19 @@ templates used by the :class:`ModelAdmin` views:
|
||||
|
||||
.. method:: ModelAdmin.has_change_permission(request, obj=None)
|
||||
|
||||
Should return ``True`` if editing obj is permitted, ``False`` otherwise.
|
||||
If obj is ``None``, should return ``True`` or ``False`` to indicate whether
|
||||
editing of objects of this type is permitted in general (e.g., ``False``
|
||||
will be interpreted as meaning that the current user is not permitted to
|
||||
edit any object of this type).
|
||||
Should return ``True`` if editing ``obj`` is permitted, ``False``
|
||||
otherwise. If ``obj`` is ``None``, should return ``True`` or ``False`` to
|
||||
indicate whether editing of objects of this type is permitted in general
|
||||
(e.g., ``False`` will be interpreted as meaning that the current user is
|
||||
not permitted to edit any object of this type).
|
||||
|
||||
.. method:: ModelAdmin.has_delete_permission(request, obj=None)
|
||||
|
||||
Should return ``True`` if deleting obj is permitted, ``False`` otherwise.
|
||||
If obj is ``None``, should return ``True`` or ``False`` to indicate whether
|
||||
deleting objects of this type is permitted in general (e.g., ``False`` will
|
||||
be interpreted as meaning that the current user is not permitted to delete
|
||||
any object of this type).
|
||||
Should return ``True`` if deleting ``obj`` is permitted, ``False``
|
||||
otherwise. If ``obj`` is ``None``, should return ``True`` or ``False`` to
|
||||
indicate whether deleting objects of this type is permitted in general
|
||||
(e.g., ``False`` will be interpreted as meaning that the current user is
|
||||
not permitted to delete any object of this type).
|
||||
|
||||
.. method:: ModelAdmin.has_module_permission(request)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user