Added KeyError handling on do_sorting_view

master
Brandon Taylor 2011-10-04 12:01:06 -05:00
parent 8e23b98e6a
commit 1117941f91
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ class SortableAdmin(ModelAdmin):
min_index += 1 min_index += 1
response = {'objects_sorted' : True} response = {'objects_sorted' : True}
except (IndexError, klass.DoesNotExist, AttributeError): except (Key, IndexError, klass.DoesNotExist, AttributeError):
pass pass
else: else:
response = {'objects_sorted' : False} response = {'objects_sorted' : False}