Django

Code

Changeset 8177

Show
Ignore:
Timestamp:
08/01/08 15:00:30 (5 months ago)
Author:
brosner
Message:

Fixed #5631 -- When fieldsets contains a field that is on the same line, it is now collapsable when collapse is set in classes. Thanks andybak for some research and Karen Tracey for the patch.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/contrib/admin/options.py

    r8153 r8177  
    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):