[1.5.X] Fixed docs noting comment_will_be_sent returns a 400, not a 403

Backport of d8ee46afff from master
This commit is contained in:
Brandon Adams 2012-11-12 17:17:05 -05:00 committed by Tim Graham
parent b39b0aedbf
commit cefbf09a4d
2 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@ from django.dispatch import Signal
# Sent just before a comment will be posted (after it's been approved and # Sent just before a comment will be posted (after it's been approved and
# moderated; this can be used to modify the comment (in place) with posting # moderated; this can be used to modify the comment (in place) with posting
# details or other such actions. If any receiver returns False the comment will be # details or other such actions. If any receiver returns False the comment will be
# discarded and a 403 (not allowed) response. This signal is sent at more or less # discarded and a 400 response. This signal is sent at more or less
# the same time (just before, actually) as the Comment object's pre-save signal, # the same time (just before, actually) as the Comment object's pre-save signal,
# except that the HTTP request is sent along with this signal. # except that the HTTP request is sent along with this signal.
comment_will_be_posted = Signal(providing_args=["comment", "request"]) comment_will_be_posted = Signal(providing_args=["comment", "request"])

View File

@ -20,8 +20,8 @@ Sent just before a comment will be saved, after it's been sanity checked and
submitted. This can be used to modify the comment (in place) with posting submitted. This can be used to modify the comment (in place) with posting
details or other such actions. details or other such actions.
If any receiver returns ``False`` the comment will be discarded and a 403 (not If any receiver returns ``False`` the comment will be discarded and a 400
allowed) response will be returned. response will be returned.
This signal is sent at more or less the same time (just before, actually) as the This signal is sent at more or less the same time (just before, actually) as the
``Comment`` object's :data:`~django.db.models.signals.pre_save` signal. ``Comment`` object's :data:`~django.db.models.signals.pre_save` signal.