Changeset 2544
- Timestamp:
- 03/21/06 12:31:31 (3 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/magic-removal/django/contrib/admin/templatetags/admin_list.py
r2469 r2544 115 115 try: 116 116 attr = getattr(result, field_name) 117 allow_tags = getattr(attr, 'allow_tags', False) 117 118 if callable(attr): 118 119 attr = attr() … … 123 124 # Strip HTML tags in the resulting text, except if the 124 125 # function has an "allow_tags" attribute set to True. 125 if not getattr(attr, 'allow_tags', False):126 if not allow_tags: 126 127 result_repr = escape(result_repr) 127 128 else:
