Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge pull request #1053 from makto/patch-1

Fixed #20394 - Clarified argument of get_user in docs
  • Loading branch information...
commit 1708c8afb6f07417da192bae93a828065858fb3c 2 parents 897e4ea + 1172bef
Tim Graham authored May 13, 2013

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

  1. 3  docs/topics/auth/customizing.txt
3  docs/topics/auth/customizing.txt
@@ -95,7 +95,8 @@ An authentication backend is a class that implements two required methods:
95 95
 optional permission related :ref:`authorization methods <authorization_methods>`.
96 96
 
97 97
 The ``get_user`` method takes a ``user_id`` -- which could be a username,
98  
-database ID or whatever -- and returns a ``User`` object.
  98
+database ID or whatever, but has to be the primary key of your ``User`` object
  99
+-- and returns a ``User`` object.
99 100
 
100 101
 The ``authenticate`` method takes credentials as keyword arguments. Most of
101 102
 the time, it'll just look like this::

0 notes on commit 1708c8a

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