summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSol Jerome <sol.jerome@gmail.com>2010-10-28 19:36:48 -0500
committerSol Jerome <sol.jerome@gmail.com>2010-11-02 20:35:19 -0500
commit90d3b840f49f2e86697a2abd35299bf7b8e93ee9 (patch)
tree83ce9331b0d7e0970b74d9ad09649bc8993cfe1a /src
parentb93a686ac42e56b6d7c27d1dd15b162cf3a56886 (diff)
downloadbcfg2-90d3b840f49f2e86697a2abd35299bf7b8e93ee9.tar.gz
bcfg2-90d3b840f49f2e86697a2abd35299bf7b8e93ee9.tar.bz2
bcfg2-90d3b840f49f2e86697a2abd35299bf7b8e93ee9.zip
Reports: Don't set TIME_ZONE unless it's supported
Django added the TIME_ZONE = None bit in 1.2 and we are still supporting distros with 1.0 installed by default. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/lib/Server/Reports/settings.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/Server/Reports/settings.py b/src/lib/Server/Reports/settings.py
index b725783ca..9efe38552 100644
--- a/src/lib/Server/Reports/settings.py
+++ b/src/lib/Server/Reports/settings.py
@@ -49,7 +49,8 @@ if DATABASE_ENGINE == 'sqlite3' and DATABASE_NAME == '':
try:
TIME_ZONE = c.get('statistics', 'time_zone')
except:
- TIME_ZONE = None
+ if django.VERSION[0] == 1 and django.VERSION[1] > 2:
+ TIME_ZONE = None
# Language code for this installation. All choices can be found here:
# http://www.w3.org/TR/REC-html40/struct/dirlang.html#langcodes