diff options
| author | Andrew Godwin <andrew@aeracode.org> | 2014-06-19 23:48:29 -0700 |
|---|---|---|
| committer | Andrew Godwin <andrew@aeracode.org> | 2014-06-19 23:48:57 -0700 |
| commit | 44b00af9bc3e6e8a561103aa5ca564995ca3c594 (patch) | |
| tree | 50396f81c8a3cc5ee10f82981beed974607cef57 /docs/topics | |
| parent | bfe5f72c7ee4ecec374af9a52c320c019abfc338 (diff) | |
[1.7.x] Fixed #22874: Document that AUTH_USER_MODEL must be in first migration
Diffstat (limited to 'docs/topics')
| -rw-r--r-- | docs/topics/auth/customizing.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/topics/auth/customizing.txt b/docs/topics/auth/customizing.txt index 610de93d01..e84fb2b8fe 100644 --- a/docs/topics/auth/customizing.txt +++ b/docs/topics/auth/customizing.txt @@ -386,6 +386,14 @@ use as your User model. fix your schema, port your data from the old user table, and possibly manually reapply some migrations. +.. warning:: + + Due to limitations of Django's dynamic dependency feature for swappable + models, you must ensure that the model referenced by :setting:`AUTH_USER_MODEL` + is created in the first migration of its app (usually called ``0001_initial``); + otherwise, you will have dependency issues. + + Referencing the User model -------------------------- |
