Remove ordering field lookup fallback
This commit is contained in:
@@ -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'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user