django-admin-sortable/adminsortable/__init__.py
Brandon Taylor 863ff69719 Fix Sorting by ForeignKey
Removed do_inline_sorting_url and get_object_or_404 check in admin. The model_type_id should *always* be passed in.
Removed test that asserted that Categories weren't sortable as part of the Project admin. Categories *should* be sortable as part of Project admin as they are a Sortable ForeignKey.
Fixed object_rep template to pass in model_type_id again.
Updated README.
Version bump to 2.0.21
2016-10-30 11:33:20 -04:00

17 lines
379 B
Python

VERSION = (2, 0, 21)
DEV_N = None
def get_version():
version = '{0}.{1}'.format(VERSION[0], VERSION[1])
if VERSION[2]:
version = '{0}.{1}'.format(version, VERSION[2])
try:
if VERSION[3]:
version = '{0}.{1}'.format(version, VERSION[3])
except IndexError:
pass
return version
__version__ = get_version()