diff options
| author | Jon Dufresne <jon.dufresne@gmail.com> | 2018-02-22 08:15:04 -0800 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2018-02-22 11:15:04 -0500 |
| commit | f5c6fc045a1fbe2e7bbe026dc4f0c1b94b698ec7 (patch) | |
| tree | a15c9d73801d4e489838ab9a91e63b93c415fbe6 /docs/ref | |
| parent | 16436f3751e9eec67a7b80b25c8e7d29a34be67e (diff) | |
Added backticks around obj argument in admin docs.
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/contrib/admin/index.txt | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt index 760cce69be..d586513c9a 100644 --- a/docs/ref/contrib/admin/index.txt +++ b/docs/ref/contrib/admin/index.txt @@ -1894,19 +1894,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) |
