From 5c17b42772f4786ac05e34cf5567994bc8d43c17 Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Sun, 25 Feb 2007 16:11:46 +0000 Subject: [PATCH] Fixed #3504: fixed a missing "self" in the authentication docs. Thanks, Robert Myers. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4572 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/authentication.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/authentication.txt b/docs/authentication.txt index ef30879ae0d..a7c28fc7a89 100644 --- a/docs/authentication.txt +++ b/docs/authentication.txt @@ -813,13 +813,13 @@ The ``authenticate`` method takes credentials as keyword arguments. Most of the time, it'll just look like this:: class MyBackend: - def authenticate(username=None, password=None): + def authenticate(self, username=None, password=None): # Check the username/password and return a User. But it could also authenticate a token, like so:: class MyBackend: - def authenticate(token=None): + def authenticate(self, token=None): # Check the token and return a User. Either way, ``authenticate`` should check the credentials it gets, and it