[Django] #27911: Document UserAdmin when creating custom User model

2 views
Skip to first unread message

Django

unread,
Mar 8, 2017, 10:45:39 AM3/8/17
to django-...@googlegroups.com
#27911: Document UserAdmin when creating custom User model
------------------------------------------------+------------------------
Reporter: David D Lowe | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Documentation | Version: 1.10
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
------------------------------------------------+------------------------
The section entitled "Using a custom user model when starting a project",
when followed, seems to cause the "Users" section of the admin site to
disappear.

https://docs.djangoproject.com/en/1.10/topics/auth/customizing/#using-a
-custom-user-model-when-starting-a-project

The simple fix to this is to register the custom User model with
UserAdmin. This is not mentioned in the documentation.

--
Ticket URL: <https://code.djangoproject.com/ticket/27911>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Mar 8, 2017, 10:48:20 AM3/8/17
to django-...@googlegroups.com
#27911: Document UserAdmin when creating custom User model
-------------------------------------+-------------------------------------

Reporter: David D Lowe | Owner: nobody
Type: | Status: new
Cleanup/optimization |
Component: Documentation | Version: 1.10
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by David D Lowe):

* has_patch: 0 => 1


Comment:

A pull request fixing this has been created:
https://github.com/django/django/pull/8157

--
Ticket URL: <https://code.djangoproject.com/ticket/27911#comment:1>

Django

unread,
Mar 8, 2017, 12:15:07 PM3/8/17
to django-...@googlegroups.com
#27911: Document UserAdmin when creating custom User model
-------------------------------------+-------------------------------------

Reporter: David D Lowe | Owner: nobody
Type: | Status: closed
Cleanup/optimization |
Component: Documentation | Version: 1.10
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage:
| Unreviewed
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham <timograham@…>):

* status: new => closed
* resolution: => fixed


Comment:

In [changeset:"9269dec05efae5deb89912a5b9a98ae75acdfff9" 9269dec0]:
{{{
#!CommitTicketReference repository=""
revision="9269dec05efae5deb89912a5b9a98ae75acdfff9"
Fixed #27911 -- Doc'd how to register custom User with admin.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/27911#comment:2>

Django

unread,
Mar 8, 2017, 12:15:36 PM3/8/17
to django-...@googlegroups.com
#27911: Document UserAdmin when creating custom User model
-------------------------------------+-------------------------------------

Reporter: David D Lowe | Owner: nobody
Type: | Status: closed
Cleanup/optimization |
Component: Documentation | Version: 1.10
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage:
| Unreviewed
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Tim Graham <timograham@…>):

In [changeset:"c7351eaa926805917cac64946df323483b1accf0" c7351ea]:
{{{
#!CommitTicketReference repository=""
revision="c7351eaa926805917cac64946df323483b1accf0"
[1.11.x] Fixed #27911 -- Doc'd how to register custom User with admin.

Backport of 9269dec05efae5deb89912a5b9a98ae75acdfff9 from master
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/27911#comment:3>

Django

unread,
Mar 10, 2017, 3:17:27 AM3/10/17
to django-...@googlegroups.com
#27911: Document UserAdmin when creating custom User model
-------------------------------------+-------------------------------------

Reporter: David D Lowe | Owner: nobody
Type: | Status: closed
Cleanup/optimization |
Component: Documentation | Version: 1.10
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage:
| Unreviewed
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by David D Lowe):

Thank you!

--
Ticket URL: <https://code.djangoproject.com/ticket/27911#comment:4>

Reply all
Reply to author
Forward
0 new messages