diff --git a/docs/ref/contrib/auth.txt b/docs/ref/contrib/auth.txt index 6395949e3e..402496a2db 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 b5d4fc3d5d..c17877545b 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 ``