summaryrefslogtreecommitdiff
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:29:54 +0200
commit5dee28030c7485a6fc3f40255100413938709598 (patch)
treea6a89b5ba6d9d34291ba14b57d9a6ee11ba75898
parentcb2fcabdd132222d4773cfa61a26268cb2378aa0 (diff)
[1.7.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.
-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 333e0c9fd1..a6cdfdc591 100644
--- a/docs/topics/auth/customizing.txt
+++ b/docs/topics/auth/customizing.txt
@@ -446,7 +446,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)