diff options
| author | zhongqi <zhongqi90@gmail.com> | 2013-05-11 15:53:54 +0800 |
|---|---|---|
| committer | zhongqi <zhongqi90@gmail.com> | 2013-05-11 15:53:54 +0800 |
| commit | 1172bef998734ef78fc69927bed57364a868c44d (patch) | |
| tree | 951393ec2ba69681bc1c6fdcb03cec1359fea158 /docs/ref | |
| parent | 9012833af857e081b515ce760685b157638efcef (diff) | |
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.
Diffstat (limited to 'docs/ref')
0 files changed, 0 insertions, 0 deletions
