Simplified get_version() in django/__init__.py

Thanks Luke Plant for the report.
This commit is contained in:
Tim Graham 2014-11-24 07:02:29 -05:00
parent 80facd7a0f
commit 0b16c1322f
1 changed files with 2 additions and 7 deletions

View File

@ -1,12 +1,7 @@
from django.utils.version import get_version
VERSION = (1, 8, 0, 'alpha', 0)
def get_version(*args, **kwargs):
# Avoid circular import
from django.utils.version import get_version
return get_version(*args, **kwargs)
__version__ = get_version(VERSION)