From 72605c649e65979d016f0d1c48e81af18b2dc5e6 Mon Sep 17 00:00:00 2001 From: Brad Jasper Date: Thu, 10 Jul 2014 12:24:14 -0400 Subject: [PATCH] Fixed bug with tests not running in older django versions --- setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 66e3a48..1f83752 100644 --- a/setup.py +++ b/setup.py @@ -19,7 +19,9 @@ def run(self): INSTALLED_APPS=('jsonfield',)) from django.core.management import call_command import django - django.setup() + + if django.VERSION[:2] >= (1, 7): + django.setup() call_command('test', 'jsonfield')