Ticket #11611: prefix_for_comment.diff

File prefix_for_comment.diff, 962 bytes (added by Alexander Lyabah, 15 years ago)
  • django/contrib/comments/forms.py

     
    2222    timestamp     = forms.IntegerField(widget=forms.HiddenInput)
    2323    security_hash = forms.CharField(min_length=40, max_length=40, widget=forms.HiddenInput)
    2424
    25     def __init__(self, target_object, data=None, initial=None):
     25    def __init__(self, target_object, data=None, initial=None,**kwargs):
    2626        self.target_object = target_object
    2727        if initial is None:
    2828            initial = {}
    2929        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)
    3131       
    3232    def security_errors(self):
    3333        """Return just those errors associated with security"""
Back to Top