From d8039dfb0a228eb905fc405c4669b55e76d9ba53 Mon Sep 17 00:00:00 2001 From: Alasdair Nicol Date: Fri, 17 Mar 2017 00:33:59 +0000 Subject: [PATCH] [1.11.x] Removed self from method signatures in docs. Backport of 757aefc12b79bac1bab730ac465fbfd3f810b61d from master --- 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 6395949e3ea..402496a2db6 100644 --- a/docs/ref/contrib/auth.txt +++ b/docs/ref/contrib/auth.txt @@ -571,7 +571,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 b5d4fc3d5d0..c17877545b6 100644 --- a/docs/ref/forms/widgets.txt +++ b/docs/ref/forms/widgets.txt @@ -263,7 +263,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 ``