Ticket #11611: prefix_for_comment.diff
File prefix_for_comment.diff, 962 bytes (added by , 15 years ago) |
---|
-
django/contrib/comments/forms.py
22 22 timestamp = forms.IntegerField(widget=forms.HiddenInput) 23 23 security_hash = forms.CharField(min_length=40, max_length=40, widget=forms.HiddenInput) 24 24 25 def __init__(self, target_object, data=None, initial=None ):25 def __init__(self, target_object, data=None, initial=None,**kwargs): 26 26 self.target_object = target_object 27 27 if initial is None: 28 28 initial = {} 29 29 initial.update(self.generate_security_data()) 30 super(CommentSecurityForm, self).__init__(data=data, initial=initial )30 super(CommentSecurityForm, self).__init__(data=data, initial=initial,**kwargs) 31 31 32 32 def security_errors(self): 33 33 """Return just those errors associated with security"""