Skip to content

Commit

Permalink
[1.7.x] Added admonition about reusable apps and AUTH_USER_PROFILE.
Browse files Browse the repository at this point in the history
Backport of 566c936 from master
  • Loading branch information
Thomas Güttler authored and timgraham committed Apr 6, 2015
1 parent 69f00f0 commit 5f8016c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/topics/auth/customizing.txt
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,14 @@ use as your User model.
have a ForeignKey to each other and seeing how ``makemigrations`` resolves that
circular dependency if you want to see how it's usually done)

.. admonition:: Reusable apps and ``AUTH_USER_MODEL``

Reusable apps shouldn't implement a custom user model. A project may use
many apps, and two reusable apps that implemented a custom user model
couldn't be used together. If you need to store per user information in your
app, use a :class:`~django.db.models.ForeignKey` or
:class:`~django.db.models.OneToOneField` to ``settings.AUTH_USER_MODEL``
as described below.

Referencing the User model
--------------------------
Expand Down

0 comments on commit 5f8016c

Please sign in to comment.