Skip to content

Commit

Permalink
Fixed bug with tests not running in older django versions
Browse files Browse the repository at this point in the history
  • Loading branch information
bradjasper committed Jul 10, 2014
1 parent 417e304 commit 72605c6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion setup.py
Expand Up @@ -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')


Expand Down

0 comments on commit 72605c6

Please sign in to comment.