Changeset 1367
- Timestamp:
- 11/23/05 10:18:17 (3 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/new-admin/django/contrib/admin/templatetags/admin_list.py
r1308 r1367 116 116 # For non-field list_display values, the value is a method 117 117 # name. Execute the method. 118 func = getattr(result, field_name)119 118 try: 119 func = getattr(result, field_name) 120 120 result_repr = str(func()) 121 except ObjectDoesNotExist:121 except AttributeError, ObjectDoesNotExist: 122 122 result_repr = EMPTY_CHANGELIST_VALUE 123 123 else:
