diff options
| author | Charles Dee Rice <cdrice@pobox.com> | 2015-05-12 18:19:39 -0700 |
|---|---|---|
| committer | Baptiste Mispelon <bmispelon@gmail.com> | 2015-05-13 10:14:33 +0200 |
| commit | 4f3c44424187de20d7f75fdde6624b9f683a9cf2 (patch) | |
| tree | c589859465fa5a87e1436175a1917b73a515a7c8 /docs | |
| parent | 9de9c240178bd9f61f55dad07e76ea458f0291f5 (diff) | |
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
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/auth/customizing.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/topics/auth/customizing.txt b/docs/topics/auth/customizing.txt index 9f62456e12..6d06ef6e25 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) |
