Ticket #13060: formsets.diff

File formsets.diff, 710 bytes (added by stherrien, 15 years ago)

validation error with _errors included

  • formsets.py

     
    5454        if self.data or self.files:
    5555            form = ManagementForm(self.data, auto_id=self.auto_id, prefix=self.prefix)
    5656            if not form.is_valid():
    57                 raise ValidationError('ManagementForm data is missing or has been tampered with')
     57                raise ValidationError('ManagementForm data is missing or has been tampered with  %s' % self._errors)
    5858        else:
    5959            form = ManagementForm(auto_id=self.auto_id, prefix=self.prefix, initial={
    6060                TOTAL_FORM_COUNT: self.total_form_count(),
Back to Top