#22507: Sending signal documentation is misleading
------------------------------------------------+------------------------
               Reporter:  claudep               |          Owner:  nobody
                   Type:  Cleanup/optimization  |         Status:  new
              Component:  Documentation         |        Version:  master
               Severity:  Normal                |       Keywords:
           Triage Stage:  Unreviewed            |      Has patch:  0
    Needs documentation:  0                     |    Needs tests:  0
Patch needs improvement:  0                     |  Easy pickings:  0
                  UI/UX:  0                     |
------------------------------------------------+------------------------
 In the documentation of sending signals
 (https://docs.djangoproject.com/en/dev/topics/signals/#sending-signals),
 there is an example where the sender parameter is filled with `self` (an
 instance), while most of the time, sender should be a class (at least it's
 the case in Django's own source code).

 Unless I'm misunderstanding something, I suggest to replace `sender=self`
 by `sender=self.__class__` in the example. And maybe specify that sender
 is a class most of the time. I can do the change if someone confirms that
 issue.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/22507>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/050.32e32e64b06c9d42a916996462f0f3c6%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to