diff --git a/django/contrib/admin/options.py b/django/contrib/admin/options.py index c6b33e938b..5243e3cdce 100644 --- a/django/contrib/admin/options.py +++ b/django/contrib/admin/options.py @@ -89,7 +89,7 @@ class Fieldline(object): yield AdminField(self.form, field, is_first=(i == 0)) def errors(self): - return mark_safe(u'\n'.join([self.form[f].errors.as_ul() for f in self.fields])) + return mark_safe(u'\n'.join([self.form[f].errors.as_ul() for f in self.fields]).strip('\n')) class AdminField(object): def __init__(self, form, field, is_first):