diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2016-09-30 22:06:02 +0200 |
|---|---|---|
| committer | Markus Holtermann <info@markusholtermann.eu> | 2016-11-25 14:15:49 +0100 |
| commit | cb7bbf97a74fa7800865e3615f196ad65dc4f281 (patch) | |
| tree | 9b22a2a0acdcac0b8ce933349d9738fb08c729f3 /docs/ref | |
| parent | eb42d8d5d9b0968ce12d09760afff684bee56a3a (diff) | |
Fixed #25966 -- Made get_user_model() work at import time.
This makes it equivalent to: `from django.contrib.auth.models import User`.
Thanks Aymeric Augustin for the initial patch and Tim Graham for the
review.
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/applications.txt | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/docs/ref/applications.txt b/docs/ref/applications.txt index 149312aafd..c3a06ab855 100644 --- a/docs/ref/applications.txt +++ b/docs/ref/applications.txt @@ -473,10 +473,6 @@ Here are some common problems that you may encounter during initialization: will also trigger this exception. The ORM cannot function properly until all models are available. - Another common culprit is :func:`django.contrib.auth.get_user_model()`. Use - the :setting:`AUTH_USER_MODEL` setting to reference the User model at import - time. - This exception also happens if you forget to call :func:`django.setup()` in a standalone Python script. |
