1
0
mirror of https://github.com/django/django.git synced 2024-11-18 15:34:16 +00:00
django/docs/topics/auth
zhongqi 1172bef998 Update customizing.txt
The origin statement "which could be ... or whatever" **misguides** many newbies like me.

In fact, the ``login`` function in ``contrib.auth`` stores ``user.pk`` in session, then ``get_user`` function in ``contrib.auth`` gets ``user.pk`` in session and then passes it to your custom ``get_user`` as ``user_id``.

Which means, ``user_id`` prarameter in your custom ``get_user`` has to be the primary key of ``User`` object, too.
2013-05-11 15:53:54 +08:00
..
customizing.txt Update customizing.txt 2013-05-11 15:53:54 +08:00
default.txt Adapted uses of versionchanged/versionadded to the new form. 2013-04-20 17:18:35 +02:00
index.txt Fixed #19743 - Documented some limitations of contrib.auth. 2013-02-06 08:24:38 -05:00
passwords.txt Fix a missing " character in the password documentation 2013-03-26 15:26:20 -04:00