summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorCharles Dee Rice <cdrice@pobox.com>2015-05-12 18:19:39 -0700
committerBaptiste Mispelon <bmispelon@gmail.com>2015-05-13 10:27:18 +0200
commite4fa298e30094969760a5b9b6a6ccdfd54d23559 (patch)
tree9788697a925c23646ee33337acb1c098b7a15157 /docs
parent290c9d665490d80b0a1b648fb022190d7dc375fc (diff)
[1.8.x] Fixed #24789 -- Fixed wrong positional args order in doc example
Arguments shown in example code (signal, sender, instance) appeared to be the incorrect positional arguments for a post_save signal (which might start as: sender, instance, created), as documented: ​https://docs.djangoproject.com/en/1.8/ref/signals/#post-save Backport of 4f3c44424187de20d7f75fdde6624b9f683a9cf2 from master.
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/auth/customizing.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/topics/auth/customizing.txt b/docs/topics/auth/customizing.txt
index 899959d9bc..1d2daed333 100644
--- a/docs/topics/auth/customizing.txt
+++ b/docs/topics/auth/customizing.txt
@@ -452,7 +452,7 @@ different User model.
from django.conf import settings
from django.db.models.signals import post_save
- def post_save_receiver(signal, sender, instance, **kwargs):
+ def post_save_receiver(sender, instance, created, **kwargs):
pass
post_save.connect(post_save_receiver, sender=settings.AUTH_USER_MODEL)