1
0
mirror of https://github.com/django/django.git synced 2025-10-26 15:16:09 +00:00

Cleanup and documentation of AbstractUser base class.

This commit is contained in:
Russell Keith-Magee
2012-09-16 15:11:10 +08:00
parent a9491a8776
commit abcb027190
2 changed files with 23 additions and 5 deletions

View File

@@ -1918,6 +1918,14 @@ additional methods:
Unlike `create_user()`, `create_superuser()` *must* require the caller
to provider a password.
Extending Django's default User
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If you're entirely happy with Django's :class:`~django.contrib.auth.models.User`
model and you just want to add some additional profile information, you can
simply subclass :class:`~django.contrib.auth.models.AbstractUser` and add your
custom profile fields.
Custom users and django.contrib.admin
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~