Ticket #4867: check-is_bound.diff

File check-is_bound.diff, 658 bytes (added by John Shaffer <jshaffer2112@…>, 17 years ago)
  • newforms/formsets.py

     
    147147
    148148    def is_valid(self):
    149149        self.full_clean()
    150         return self._is_valid
     150        return self.is_bound and self._is_valid
    151151
    152152def formset_for_form(form, formset=BaseFormSet, num_extra=1, orderable=False, deletable=False):
    153153    """Return a FormSet for the given form class."""
     
    159159    for formset in formsets:
    160160        if not formset.is_valid():
    161161            return False
    162     return True
    163  No newline at end of file
     162    return True
Back to Top