0
0
mirror of https://github.com/django/django.git synced 2024-11-29 14:46:18 +01:00

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

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)