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')