diff options
| author | Tim Graham <timograham@gmail.com> | 2013-07-04 10:19:00 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2013-07-04 10:20:09 -0400 |
| commit | 25d987b21e3af11b3ab3e37478a2dfd32f886d97 (patch) | |
| tree | c6af926b572d3ff7a2da73de3ed9a4c08f1a87c8 /docs/topics/auth | |
| parent | 82a6a956d50edf1008b89b886090459d2e65ac1a (diff) | |
[1.5.x] Fixed #20134 -- Correct list of fields that UserManager requires.
Thanks semenov and pegler.
Backport of da5069f68f from master.
Diffstat (limited to 'docs/topics/auth')
| -rw-r--r-- | docs/topics/auth/customizing.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/topics/auth/customizing.txt b/docs/topics/auth/customizing.txt index 3764f17218..824d233944 100644 --- a/docs/topics/auth/customizing.txt +++ b/docs/topics/auth/customizing.txt @@ -601,8 +601,9 @@ The following methods are available on any subclass of been called for this user. You should also define a custom manager for your ``User`` model. If your -``User`` model defines ``username`` and ``email`` fields the same as Django's -default ``User``, you can just install Django's +``User`` model defines ``username``, ``email``, ``is_staff``, ``is_active``, +``is_superuser``, ``last_login``, and ``date_joined`` fields the same as +Django's default ``User``, you can just install Django's :class:`~django.contrib.auth.models.UserManager`; however, if your ``User`` model defines different fields, you will need to define a custom manager that extends :class:`~django.contrib.auth.models.BaseUserManager` providing two |
