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:
parent
80facd7a0f
commit
0b16c1322f
@ -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)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user