mirror of
https://github.com/Hopiu/django.git
synced 2026-03-30 04:40:33 +00:00
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. |
||
|---|---|---|
| .. | ||
| customizing.txt | ||
| default.txt | ||
| index.txt | ||
| passwords.txt | ||