Added KeyError handling on do_sorting_view
This commit is contained in:
1 parent
8e23b98e6a
commit
1117941f91
1 file changed
+1
-1
@@ -126,7 +126,7 @@ class SortableAdmin(ModelAdmin):
|
||||
min_index += 1
|
||||
|
||||
response = {'objects_sorted' : True}
|
||||
except (IndexError, klass.DoesNotExist, AttributeError):
|
||||
except (Key, IndexError, klass.DoesNotExist, AttributeError):
|
||||
pass
|
||||
else:
|
||||
response = {'objects_sorted' : False}
|
||||
|
||||
Reference in new issue
Block a user