django-admin-sortable/adminsortable/__init__.py
Brandon Taylor f4daaeb232 Restructured sample project for Django 2.
Refactored database and changed "app" to "samples" so name didn't conflict with "AppConfig".
Replaced deprecated assignment_tag with simple_tag.
Updated unit tests.
2017-12-04 21:29:55 -05:00

17 lines
378 B
Python

VERSION = (2, 1, 2)
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()