Ticket #5631: 5631.diff

File 5631.diff, 589 bytes (added by kmtracey, 7 years ago)
  • django/contrib/admin/options.py

     
    8989            yield AdminField(self.form, field, is_first=(i == 0))
    9090
    9191    def errors(self):
    92         return mark_safe(u'\n'.join([self.form[f].errors.as_ul() for f in self.fields]))
     92        return mark_safe(u'\n'.join([self.form[f].errors.as_ul() for f in self.fields]).strip('\n'))
    9393
    9494class AdminField(object):
    9595    def __init__(self, form, field, is_first):
Back to Top