diff --git a/django/contrib/comments/forms.py b/django/contrib/comments/forms.py
index d497572..43a512d 100644
a
|
b
|
class CommentSecurityForm(forms.Form):
|
21 | 21 | timestamp = forms.IntegerField(widget=forms.HiddenInput) |
22 | 22 | security_hash = forms.CharField(min_length=40, max_length=40, widget=forms.HiddenInput) |
23 | 23 | |
24 | | def __init__(self, target_object, data=None, initial=None): |
| 24 | def __init__(self, target_object, data=None, initial=None, *args, **kwargs): |
25 | 25 | self.target_object = target_object |
26 | 26 | if initial is None: |
27 | 27 | initial = {} |
28 | 28 | initial.update(self.generate_security_data()) |
29 | | super(CommentSecurityForm, self).__init__(data=data, initial=initial) |
| 29 | super(CommentSecurityForm, self).__init__(data=data, initial=initial, *args, **kwargs) |
30 | 30 | |
31 | 31 | def security_errors(self): |
32 | 32 | """Return just those errors associated with security""" |
diff --git a/django/contrib/comments/views/comments.py b/django/contrib/comments/views/comments.py
index c2b553f..aabbd8d 100644
a
|
b
|
class CommentPostBadRequest(http.HttpResponseBadRequest):
|
25 | 25 | |
26 | 26 | @csrf_protect |
27 | 27 | @require_POST |
28 | | def post_comment(request, next=None, using=None): |
| 28 | def post_comment(request, next=None, using=None, *args, **kwargs): |
29 | 29 | """ |
30 | 30 | Post a comment. |
31 | 31 | |
… |
… |
def post_comment(request, next=None, using=None):
|
71 | 71 | preview = "preview" in data |
72 | 72 | |
73 | 73 | # Construct the comment form |
74 | | form = comments.get_form()(target, data=data) |
| 74 | form = comments.get_form()(target, data=data, *args, **kwargs) |
75 | 75 | |
76 | 76 | # Check security information |
77 | 77 | if form.security_errors(): |