mirror of
https://github.com/jazzband/django-admin-sortable.git
synced 2026-05-11 08:43:18 +00:00
Added KeyError handling on do_sorting_view
This commit is contained in:
parent
8e23b98e6a
commit
1117941f91
1 changed files with 1 additions and 1 deletions
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Reference in a new issue