Ticket #5388: formsets-validation.diff

File formsets-validation.diff, 448 bytes (added by Petr Marhoun <petr.marhoun@…>, 17 years ago)
  • django/newforms/formsets.py

    === modified file 'django/newforms/formsets.py'
     
    174174
    175175def all_valid(formsets):
    176176    """Returns true if every formset in formsets is valid."""
     177    valid = True
    177178    for formset in formsets:
    178179        if not formset.is_valid():
    179             return False
    180     return True
     180            valid = False
     181    return valid
Back to Top