mirror of
https://github.com/jazzband/django-admin-sortable.git
synced 2026-03-16 22:10:30 +00:00
Remove ordering field lookup fallback
This commit is contained in:
parent
ac507e4484
commit
356d88dfde
1 changed files with 0 additions and 3 deletions
|
|
@ -183,9 +183,6 @@ class SortableAdmin(SortableAdminBase, ModelAdmin):
|
|||
|
||||
try:
|
||||
order_field_name = opts.model._meta.ordering[0]
|
||||
except (AttributeError, IndexError):
|
||||
# for Django 1.5.x
|
||||
order_field_name = opts.ordering[0]
|
||||
except (AttributeError, IndexError):
|
||||
order_field_name = 'order'
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue