Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #5631 -- When fieldsets contains a field that is on the same li…

…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...
commit 4c0234215ec38f9fb7ce95cdc49d89cf10a87b50 1 parent 2904c1d
Brian Rosner authored August 01, 2008

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/contrib/admin/options.py
2  django/contrib/admin/options.py
@@ -89,7 +89,7 @@ def __iter__(self):
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):

0 notes on commit 4c02342

Please sign in to comment.
Something went wrong with that request. Please try again.