Ticket #4867: check-is_bound.diff
File check-is_bound.diff, 658 bytes (added by , 17 years ago) |
---|
-
newforms/formsets.py
147 147 148 148 def is_valid(self): 149 149 self.full_clean() 150 return self. _is_valid150 return self.is_bound and self._is_valid 151 151 152 152 def formset_for_form(form, formset=BaseFormSet, num_extra=1, orderable=False, deletable=False): 153 153 """Return a FormSet for the given form class.""" … … 159 159 for formset in formsets: 160 160 if not formset.is_valid(): 161 161 return False 162 return True 163 No newline at end of file 162 return True