mirror of
https://github.com/jazzband/django-admin-sortable.git
synced 2026-03-31 13:10:40 +00:00
Merged pull request 62 to replace depracated mimetype handling. Bumped version to 1.6 to coincide with the release of Django 1.6. Merged pull request 59 to improve query count speed by leveraging .count() instead of len(). Merged pull request 58 to ignore bad indexes.
17 lines
399 B
Python
Executable file
17 lines
399 B
Python
Executable file
VERSION = (1, 6, 0) # following PEP 386
|
|
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()
|