Ticket #5631: 5631.diff
File 5631.diff, 589 bytes (added by , 16 years ago) |
---|
-
django/contrib/admin/options.py
89 89 yield AdminField(self.form, field, is_first=(i == 0)) 90 90 91 91 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')) 93 93 94 94 class AdminField(object): 95 95 def __init__(self, form, field, is_first):