summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2012-11-16 15:19:33 -0800
committerTim Graham <timograham@gmail.com>2012-11-16 15:19:33 -0800
commitb4a98e028adb5b32dcfa7384e46f57b28b43b684 (patch)
treec1a35c4383c50ea0e68d05b7bd5a3a09a3421e11
parentff0d3126afbc30ae1aab3a9d352300e59937fe5e (diff)
parentd8ee46afff913975404887cdd2eec635a03013f8 (diff)
Merge pull request #521 from emidln/master
Fixed docs noting comment_will_be_sent signals return 400 status code
-rw-r--r--django/contrib/comments/signals.py2
-rw-r--r--docs/ref/contrib/comments/signals.txt4
2 files changed, 3 insertions, 3 deletions
diff --git a/django/contrib/comments/signals.py b/django/contrib/comments/signals.py
index fe1083bd14..079afaf03a 100644
--- a/django/contrib/comments/signals.py
+++ b/django/contrib/comments/signals.py
@@ -6,7 +6,7 @@ from django.dispatch import Signal
# 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
# 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,
# except that the HTTP request is sent along with this signal.
comment_will_be_posted = Signal(providing_args=["comment", "request"])
diff --git a/docs/ref/contrib/comments/signals.txt b/docs/ref/contrib/comments/signals.txt
index 9d7c435927..8274539ed7 100644
--- a/docs/ref/contrib/comments/signals.txt
+++ b/docs/ref/contrib/comments/signals.txt
@@ -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
details or other such actions.
-If any receiver returns ``False`` the comment will be discarded and a 403 (not
-allowed) response will be returned.
+If any receiver returns ``False`` the comment will be discarded and a 400
+response will be returned.
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.