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:27 -0500 |
| commit | 484d2a6894b0765dc4af600c2dda2c71ac4d9151 (patch) | |
| tree | 2bcd9170140ae50d7189e225b73a3b7887ec0f5b | |
| parent | 35cbb0baf4b547c7723056a8e34f63f80c2d908e (diff) | |
[2.0.x] Added backticks around obj argument in admin docs.
Backport of f5c6fc045a1fbe2e7bbe026dc4f0c1b94b698ec7 from master
| -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 381492935a..63dd9938be 100644 --- a/docs/ref/contrib/admin/index.txt +++ b/docs/ref/contrib/admin/index.txt @@ -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) |
