Skip to content

Commit

Permalink
Fixed #5631 -- When fieldsets contains a field that is on the same li…
Browse files Browse the repository at this point in the history
…ne, it is now collapsable when collapse is set in classes. Thanks andybak for some research and Karen Tracey for the patch.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8177 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
brosner committed Aug 1, 2008
1 parent 2904c1d commit 4c02342
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/contrib/admin/options.py
Expand Up @@ -89,7 +89,7 @@ def __iter__(self):
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):
Expand Down

0 comments on commit 4c02342

Please sign in to comment.