summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2012-11-24 13:53:44 +0800
committerRussell Keith-Magee <russell@keith-magee.com>2012-11-24 13:53:44 +0800
commitfdb5c98d7ee54c7f89ec10b0203263f1f5b37510 (patch)
treee84484973a678a4ba8cda9fa8c9997ef88af4006 /docs
parentc8985a8a7317042a641e870cb75b3005cc5d67b1 (diff)
Fixed #19218 -- Added documentation note on limitations of signals with custom User models.
Thanks to kunitoki@gmail.com for the report.
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/auth.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/topics/auth.txt b/docs/topics/auth.txt
index 6d8e3c66c3..e313b239a6 100644
--- a/docs/topics/auth.txt
+++ b/docs/topics/auth.txt
@@ -2148,6 +2148,13 @@ If your project uses proxy models, you must either modify the proxy to extend
the User model that is currently in use in your project, or merge your proxy's
behavior into your User subclass.
+Custom users and signals
+~~~~~~~~~~~~~~~~~~~~~~~~
+
+Another limitation of custom User models is that you can't use
+:func:`django.contrib.auth.get_user_model()` as the sender or target of a signal
+handler. Instead, you must register the handler with the actual User model.
+
A full example
--------------