Ticket #13004: catch_value_error.diff
File catch_value_error.diff, 609 bytes (added by , 15 years ago) |
---|
-
django/contrib/admin/helpers.py
154 154 field, obj, model_admin = self.field, self.form.instance, self.model_admin 155 155 try: 156 156 f, attr, value = lookup_field(field, obj, model_admin) 157 except (AttributeError, ObjectDoesNotExist):157 except (AttributeError, ValueError, ObjectDoesNotExist): 158 158 result_repr = EMPTY_CHANGELIST_VALUE 159 159 else: 160 160 if f is None: