1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00

Added backticks around obj argument in admin docs.

This commit is contained in:
Jon Dufresne 2018-02-22 08:15:04 -08:00 committed by Tim Graham
parent 16436f3751
commit f5c6fc045a

View File

@ -1894,19 +1894,19 @@ templates used by the :class:`ModelAdmin` views:
.. method:: ModelAdmin.has_change_permission(request, obj=None) .. method:: ModelAdmin.has_change_permission(request, obj=None)
Should return ``True`` if editing obj is permitted, ``False`` otherwise. Should return ``True`` if editing ``obj`` is permitted, ``False``
If obj is ``None``, should return ``True`` or ``False`` to indicate whether otherwise. If ``obj`` is ``None``, should return ``True`` or ``False`` to
editing of objects of this type is permitted in general (e.g., ``False`` indicate whether editing of objects of this type is permitted in general
will be interpreted as meaning that the current user is not permitted to (e.g., ``False`` will be interpreted as meaning that the current user is
edit any object of this type). not permitted to edit any object of this type).
.. method:: ModelAdmin.has_delete_permission(request, obj=None) .. method:: ModelAdmin.has_delete_permission(request, obj=None)
Should return ``True`` if deleting obj is permitted, ``False`` otherwise. Should return ``True`` if deleting ``obj`` is permitted, ``False``
If obj is ``None``, should return ``True`` or ``False`` to indicate whether otherwise. If ``obj`` is ``None``, should return ``True`` or ``False`` to
deleting objects of this type is permitted in general (e.g., ``False`` will indicate whether deleting objects of this type is permitted in general
be interpreted as meaning that the current user is not permitted to delete (e.g., ``False`` will be interpreted as meaning that the current user is
any object of this type). not permitted to delete any object of this type).
.. method:: ModelAdmin.has_module_permission(request) .. method:: ModelAdmin.has_module_permission(request)