Ticket #5388: formsets-validation.diff
File formsets-validation.diff, 448 bytes (added by , 17 years ago) |
---|
-
django/newforms/formsets.py
=== modified file 'django/newforms/formsets.py'
174 174 175 175 def all_valid(formsets): 176 176 """Returns true if every formset in formsets is valid.""" 177 valid = True 177 178 for formset in formsets: 178 179 if not formset.is_valid(): 179 returnFalse180 return True180 valid = False 181 return valid