1
0
mirror of https://github.com/django/django.git synced 2025-06-05 03:29:12 +00:00

[1.7.x] Added admonition about reusable apps and AUTH_USER_PROFILE.

Backport of 566c9362363f4b65cc64a35f907c2d6c39d0289e from master
This commit is contained in:
Thomas Güttler 2015-04-01 13:16:42 +02:00 committed by Tim Graham
parent 69f00f0091
commit 5f8016cdfe

View File

@ -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
--------------------------