minor typo in the examples of m2m_changed signal
Reported by: |
slink <gabor@…> |
Owned by: |
nobody |
Component:
|
Documentation
|
Version:
|
1.2
|
Severity:
|
|
Keywords:
|
|
Cc:
|
|
Triage Stage:
|
Accepted
|
Has patch:
|
yes
|
Needs documentation:
|
no
|
Needs tests:
|
no
|
Patch needs improvement:
|
no
|
Easy pickings:
|
no
|
UI/UX:
|
no
|
In the Signals chapter of the Django documentation, there is a minor typo. The m2m_changed model signal has actions with names "pre_add", "post_add", etc. described which is true. Right below in the two examples listed, the documentation only writes "add", "remove". It should write "pre_add"/"post_add" and "pre_remove"/"post_remove".
(In [14304]) Fixed #14477 -- Corrects several instances of "add" and "remove" m2m_changed signal actions not having been updated to "pre_add", "post_add", etc. Thanks to slink and andrews for reporting several instances of it, and andrews for the draft patch.