mirror of
https://github.com/django/django.git
synced 2025-06-03 18:49:12 +00:00
Added admonition about reusable apps and AUTH_USER_PROFILE.
This commit is contained in:
parent
2cf58e80d1
commit
566c936236
@ -407,6 +407,14 @@ use as your User model.
|
|||||||
have a ForeignKey to each other and seeing how ``makemigrations`` resolves that
|
have a ForeignKey to each other and seeing how ``makemigrations`` resolves that
|
||||||
circular dependency if you want to see how it's usually done)
|
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
|
Referencing the User model
|
||||||
--------------------------
|
--------------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user