Ticket #4867: check-is_bound.2.diff

File check-is_bound.2.diff, 679 bytes (added by John Shaffer <jshaffer2112@…>, 17 years ago)

A saner version.

  • django/branches/newforms-admin/django/newforms/formsets.py

     
    146146        return '%s-%s' % (self.prefix, index)
    147147
    148148    def is_valid(self):
     149        if not self.is_bound:
     150            return False
    149151        self.full_clean()
    150152        return self._is_valid
    151153
     
    159161    for formset in formsets:
    160162        if not formset.is_valid():
    161163            return False
    162     return True
    163  No newline at end of file
     164    return True
Back to Top