Commit cdd4af51f49ab6e5e2f11d9ce78fd1d903e63942
1 parent
de6187c6
Passed any kwargs to CommentSecurityForm parent
Thanks Luis Moncaris for the report and initial patch.
Showing
1 changed file
with
2 additions
and
2 deletions
| ... | ... | @@ -29,12 +29,12 @@ class CommentSecurityForm(forms.Form): |
| 29 | 29 | timestamp = forms.IntegerField(widget=forms.HiddenInput) |
| 30 | 30 | security_hash = forms.CharField(min_length=40, max_length=40, widget=forms.HiddenInput) |
| 31 | 31 | |
| 32 | - def __init__(self, target_object, data=None, initial=None): | |
| 32 | + def __init__(self, target_object, data=None, initial=None, **kwargs): | |
| 33 | 33 | self.target_object = target_object |
| 34 | 34 | if initial is None: |
| 35 | 35 | initial = {} |
| 36 | 36 | initial.update(self.generate_security_data()) |
| 37 | - super(CommentSecurityForm, self).__init__(data=data, initial=initial) | |
| 37 | + super(CommentSecurityForm, self).__init__(data=data, initial=initial, **kwargs) | |
| 38 | 38 | |
| 39 | 39 | def security_errors(self): |
| 40 | 40 | """Return just those errors associated with security""" | ... | ... |
Please
register
or
login
to post a comment