Changeset 5574
- Timestamp:
- 06/30/07 22:51:31 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/newforms-admin/django/contrib/admin/options.py
r5499 r5574 109 109 If kwargs are given, they're passed to the form Field's constructor. 110 110 """ 111 # For ManyToManyFields with a filter interface, use a special Widget.111 # For ManyToManyFields with a filter interface, use a special widget. 112 112 if isinstance(db_field, models.ManyToManyField) and db_field.name in (self.filter_vertical + self.filter_horizontal): 113 113 kwargs['widget'] = widgets.FilteredSelectMultiple(db_field.verbose_name, (db_field.name in self.filter_vertical))
