summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2014-08-19 07:23:17 -0400
committerTim Graham <timograham@gmail.com>2014-08-19 07:27:03 -0400
commit18f25efc9ec18e6d5c0ceada2b0349b7117beb77 (patch)
tree583947a9d40957cb4bd14e6dd1b6d6b22e6c674d
parent3cd3b49eb50155ac7c29589b66498359b4934c00 (diff)
[1.6.x] Fixed #23314 -- Tempered recommendation of storing profile data on custom user.
Thanks gavinwahl for the report. Backport of 3569536491 from master
-rw-r--r--docs/topics/auth/customizing.txt10
1 files changed, 7 insertions, 3 deletions
diff --git a/docs/topics/auth/customizing.txt b/docs/topics/auth/customizing.txt
index 8f78c2b4a7..b205f5fda0 100644
--- a/docs/topics/auth/customizing.txt
+++ b/docs/topics/auth/customizing.txt
@@ -451,6 +451,8 @@ different User model.
class Article(models.Model):
author = models.ForeignKey(settings.AUTH_USER_MODEL)
+.. _specifying-custom-user-model:
+
Specifying a custom User model
------------------------------
@@ -691,10 +693,12 @@ 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
+model and you just want to add some additional profile information, you could
simply subclass ``django.contrib.auth.models.AbstractUser`` and add your
-custom profile fields. This class provides the full implementation of the
-default :class:`~django.contrib.auth.models.User` as an :ref:`abstract model
+custom profile fields, although we'd recommend a separate model as described in
+the "Model design considerations" note of :ref:`specifying-custom-user-model`.
+``AbstractUser`` provides the full implementation of the default
+:class:`~django.contrib.auth.models.User` as an :ref:`abstract model
<abstract-base-classes>`.
.. _custom-users-and-the-built-in-auth-forms: