From 4f3c44424187de20d7f75fdde6624b9f683a9cf2 Mon Sep 17 00:00:00 2001 From: Charles Dee Rice Date: Tue, 12 May 2015 18:19:39 -0700 Subject: [PATCH] Fixed #24789 -- Fixed wrong positional args order in doc example MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- docs/topics/auth/customizing.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/topics/auth/customizing.txt b/docs/topics/auth/customizing.txt index 9f62456e12d..6d06ef6e25a 100644 --- a/docs/topics/auth/customizing.txt +++ b/docs/topics/auth/customizing.txt @@ -450,7 +450,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)