Ticket #12901: 12901-against-12557.diff

File 12901-against-12557.diff, 615 bytes (added by ammarr, 15 years ago)
  • django/forms/models.py

     
    281281            elif self._meta.fields and field not in self._meta.fields:
    282282                exclude.append(f.name)
    283283
     284            elif self._meta.exclude and field in self._meta.exclude:
     285                exclude.append(f.name)
     286
    284287            # Exclude fields that failed form validation. There's no need for
    285288            # the model fields to validate them as well.
    286289            elif field in self._errors.keys():
Back to Top