Added KeyError handling on do_sorting_view
This commit is contained in:
@@ -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}
|
||||||
|
|||||||
Reference in New Issue
Block a user