We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 897e4ea + 1172bef commit 1708c8aCopy full SHA for 1708c8a
docs/topics/auth/customizing.txt
@@ -95,7 +95,8 @@ An authentication backend is a class that implements two required methods:
95
optional permission related :ref:`authorization methods <authorization_methods>`.
96
97
The ``get_user`` method takes a ``user_id`` -- which could be a username,
98
-database ID or whatever -- and returns a ``User`` object.
+database ID or whatever, but has to be the primary key of your ``User`` object
99
+-- and returns a ``User`` object.
100
101
The ``authenticate`` method takes credentials as keyword arguments. Most of
102
the time, it'll just look like this::
0 commit comments