diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2007-08-21 03:08:02 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2007-08-21 03:08:02 +0000 |
| commit | a1e26b0105a7f6afc5d950556caf7f44ff35c9cf (patch) | |
| tree | 8734e5589b3df249dbc9aa501585c798d2117358 /django/__init__.py | |
| parent | a3a07af91060363e21cad1621820cae5f2bf9524 (diff) | |
Fixed #5215 -- Added Subversion revision number to Django version string. Thanks for the patch, Deryck Hodge
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5990 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/__init__.py')
| -rw-r--r-- | django/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/django/__init__.py b/django/__init__.py index 17d8c519cc..de473fa4e9 100644 --- a/django/__init__.py +++ b/django/__init__.py @@ -4,5 +4,6 @@ def get_version(): "Returns the version as a human-format string." v = '.'.join([str(i) for i in VERSION[:-1]]) if VERSION[-1]: - v += '-' + VERSION[-1] + from django.utils.version import get_svn_revision + v = '%s-%s-%s' % (v, VERSION[-1], get_svn_revision()) return v |
