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:29:54 +0200 |
| commit | 5dee28030c7485a6fc3f40255100413938709598 (patch) | |
| tree | a6a89b5ba6d9d34291ba14b57d9a6ee11ba75898 /docs | |
| parent | cb2fcabdd132222d4773cfa61a26268cb2378aa0 (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.
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 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) |
