Ticket #766: allow_tags_AttributeError.patch
File allow_tags_AttributeError.patch, 872 bytes (added by , 18 years ago) |
---|
-
django/contrib/admin/views/main.py
388 388 except meta.FieldDoesNotExist: 389 389 # For non-field list_display values, the value is a method 390 390 # name. Execute the method. 391 func = getattr(result, field_name)392 391 try: 392 func = getattr(result, field_name) 393 393 result_repr = str(func()) 394 except ObjectDoesNotExist:394 except AttributeError: 395 395 result_repr = EMPTY_CHANGELIST_VALUE 396 396 else: 397 397 # Strip HTML tags in the resulting text, except if the