mirror of
https://github.com/jazzband/django-admin-sortable.git
synced 2026-03-16 22:10:30 +00:00
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
17 lines
379 B
Python
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()
|