Simplified get_version() in django/__init__.py
Thanks Luke Plant for the report.
This commit is contained in:
parent
80facd7a0f
commit
0b16c1322f
|
@ -1,12 +1,7 @@
|
||||||
|
from django.utils.version import get_version
|
||||||
|
|
||||||
VERSION = (1, 8, 0, 'alpha', 0)
|
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)
|
__version__ = get_version(VERSION)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue