summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAndrew Godwin <andrew@aeracode.org>2014-06-17 17:45:38 -0700
committerAndrew Godwin <andrew@aeracode.org>2014-06-17 17:45:38 -0700
commit8d2ac948a9583220d2324cf908bff3cc1d0beb2b (patch)
tree062599e8b580a2214243ffa328c662ea6fc64974 /docs
parent91f1b6dcdc5da47d7794a55e3114820407a5bd62 (diff)
Fixed #22853: Swapped models are now ignored for migration operations.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/settings.txt6
-rw-r--r--docs/topics/auth/customizing.txt3
2 files changed, 8 insertions, 1 deletions
diff --git a/docs/ref/settings.txt b/docs/ref/settings.txt
index d9697a5bcb..382449e22e 100644
--- a/docs/ref/settings.txt
+++ b/docs/ref/settings.txt
@@ -2374,6 +2374,12 @@ Default: 'auth.User'
The model to use to represent a User. See :ref:`auth-custom-user`.
+.. warning::
+ You cannot change the AUTH_USER_MODEL setting during the lifetime of
+ a project (i.e. once you have made and migrated models that depend on it)
+ without serious effort. It is intended to be set at the project start.
+ See :ref:`auth-custom-user` for more details.
+
.. setting:: LOGIN_REDIRECT_URL
LOGIN_REDIRECT_URL
diff --git a/docs/topics/auth/customizing.txt b/docs/topics/auth/customizing.txt
index 8b9db396cd..0fd2b41dd2 100644
--- a/docs/topics/auth/customizing.txt
+++ b/docs/topics/auth/customizing.txt
@@ -389,7 +389,8 @@ use as your User model.
Changing this setting after you have tables created is not supported
by :djadmin:`makemigrations` and will result in you having to manually
- write a set of migrations to fix your schema.
+ fix your schema, port your data from the old user table, and possibly
+ manually reapply some migrations.
Referencing the User model
--------------------------