Ticket #679: collapse-fix.diff
File collapse-fix.diff, 1.0 KB (added by , 19 years ago) |
---|
-
main.py
556 556 if not seen_collapse and 'collapse' in options.get('classes', ''): 557 557 seen_collapse = True 558 558 javascript_imports.append('%sjs/admin/CollapsedFieldsets.js' % ADMIN_MEDIA_PREFIX) 559 try:560 for field_list in options['fields']:559 for field_list in options['fields']: 560 try: 561 561 for f in field_list: 562 562 if f.rel and isinstance(f, meta.ManyToManyField) and f.rel.filter_interface: 563 563 javascript_imports.extend(['%sjs/SelectBox.js' % ADMIN_MEDIA_PREFIX, '%sjs/SelectFilter2.js' % ADMIN_MEDIA_PREFIX]) 564 564 raise StopIteration 565 except StopIteration:566 break565 except StopIteration: 566 break 567 567 for j in javascript_imports: 568 568 t.append('<script type="text/javascript" src="%s"></script>' % j) 569 569