From 757aefc12b79bac1bab730ac465fbfd3f810b61d Mon Sep 17 00:00:00 2001 From: Alasdair Nicol Date: Fri, 17 Mar 2017 00:33:59 +0000 Subject: [PATCH] Removed self from method signatures in docs. --- docs/ref/contrib/auth.txt | 2 +- docs/ref/forms/widgets.txt | 2 +- docs/ref/models/expressions.txt | 2 +- docs/ref/models/lookups.txt | 4 ++-- docs/ref/templates/api.txt | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/ref/contrib/auth.txt b/docs/ref/contrib/auth.txt index 265dc53579..c4aca4ceee 100644 --- a/docs/ref/contrib/auth.txt +++ b/docs/ref/contrib/auth.txt @@ -545,7 +545,7 @@ The following backends are available in :mod:`django.contrib.auth.backends`: permission string ``perm``. Returns ``False`` if the user is not :attr:`~django.contrib.auth.models.CustomUser.is_active`. - .. method:: has_module_perms(self, user_obj, app_label) + .. method:: has_module_perms(user_obj, app_label) Returns whether the ``user_obj`` has any permissions on the app ``app_label``. diff --git a/docs/ref/forms/widgets.txt b/docs/ref/forms/widgets.txt index e4630a468b..219a6b7f23 100644 --- a/docs/ref/forms/widgets.txt +++ b/docs/ref/forms/widgets.txt @@ -258,7 +258,7 @@ foundation for custom widgets. ``Widget`` subclasses can provide custom context values by overriding this method. - .. method:: id_for_label(self, id_) + .. method:: id_for_label(id_) Returns the HTML ID attribute of this widget for use by a ``