Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #3504: fixed a missing "self" in the authentication docs. Thank…

…s, Robert Myers.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@4572 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 5c17b42772f4786ac05e34cf5567994bc8d43c17 1 parent a0157da
Jacob Kaplan-Moss authored February 25, 2007

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  docs/authentication.txt
4  docs/authentication.txt
@@ -813,13 +813,13 @@ The  ``authenticate`` method takes credentials as keyword arguments. Most of
813 813
 the time, it'll just look like this::
814 814
 
815 815
     class MyBackend:
816  
-        def authenticate(username=None, password=None):
  816
+        def authenticate(self, username=None, password=None):
817 817
             # Check the username/password and return a User.
818 818
 
819 819
 But it could also authenticate a token, like so::
820 820
 
821 821
     class MyBackend:
822  
-        def authenticate(token=None):
  822
+        def authenticate(self, token=None):
823 823
             # Check the token and return a User.
824 824
 
825 825
 Either way, ``authenticate`` should check the credentials it gets, and it

0 notes on commit 5c17b42

Please sign in to comment.
Something went wrong with that request. Please try again.