Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

Backport of d8ee46a from master
  • Loading branch information...
commit cefbf09a4d17ac1f5a90c9a8e68b21bfdd973d31 1 parent b39b0ae
Brandon Adams authored November 12, 2012 timgraham committed November 16, 2012
2  django/contrib/comments/signals.py
@@ -6,7 +6,7 @@
6 6
 # Sent just before a comment will be posted (after it's been approved and
7 7
 # moderated; this can be used to modify the comment (in place) with posting
8 8
 # details or other such actions. If any receiver returns False the comment will be
9  
-# discarded and a 403 (not allowed) response. This signal is sent at more or less
  9
+# discarded and a 400 response. This signal is sent at more or less
10 10
 # the same time (just before, actually) as the Comment object's pre-save signal,
11 11
 # except that the HTTP request is sent along with this signal.
12 12
 comment_will_be_posted = Signal(providing_args=["comment", "request"])
4  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
20 20
 submitted. This can be used to modify the comment (in place) with posting
21 21
 details or other such actions.
22 22
 
23  
-If any receiver returns ``False`` the comment will be discarded and a 403 (not
24  
-allowed) response will be returned.
  23
+If any receiver returns ``False`` the comment will be discarded and a 400
  24
+response will be returned.
25 25
 
26 26
 This signal is sent at more or less the same time (just before, actually) as the
27 27
 ``Comment`` object's :data:`~django.db.models.signals.pre_save` signal.

0 notes on commit cefbf09

Please sign in to comment.
Something went wrong with that request. Please try again.