Django

Code

Changeset 1367

Show
Ignore:
Timestamp:
11/23/05 10:18:17 (3 years ago)
Author:
rjwittams
Message:

Exception handling fix for change lists. Cheers plisk.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/branches/new-admin/django/contrib/admin/templatetags/admin_list.py

    r1308 r1367  
    116116            # For non-field list_display values, the value is a method 
    117117            # name. Execute the method. 
    118             func = getattr(result, field_name) 
    119118            try: 
     119                func = getattr(result, field_name) 
    120120                result_repr = str(func()) 
    121             except ObjectDoesNotExist: 
     121            except AttributeError, ObjectDoesNotExist: 
    122122                result_repr = EMPTY_CHANGELIST_VALUE 
    123123            else: