Fixed merge conflicts.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
VERSION = (2, 0, 13)
|
||||
DEV_N = None
|
||||
|
||||
VERSION = (2, 0, 14)
|
||||
DEV_N = None
|
||||
|
||||
|
||||
def get_version():
|
||||
version = '{0}.{1}'.format(VERSION[0], VERSION[1])
|
||||
|
||||
@@ -194,7 +194,7 @@ class SortableAdmin(SortableAdminBase, ModelAdmin):
|
||||
except (AttributeError, IndexError):
|
||||
# for Django 1.5.x
|
||||
order_field_name = opts.ordering[0]
|
||||
finally:
|
||||
except (AttributeError, IndexError):
|
||||
order_field_name = 'order'
|
||||
|
||||
objects = objects.order_by(sortable_by_expression, order_field_name)
|
||||
|
||||
Reference in New Issue
Block a user