diff options
author | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2014-09-03 23:49:47 +0200 |
---|---|---|
committer | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2014-09-03 23:49:47 +0200 |
commit | 25bd44c30007d5babecefed651827431569ee1ee (patch) | |
tree | 784a3c8a26dd0567e9904f8f751516414c730a4f /tests/test_django.py | |
parent | 5e4edb44daf54a4c34703319bdb9467ca7b3de8d (diff) | |
download | factory-boy-25bd44c30007d5babecefed651827431569ee1ee.tar factory-boy-25bd44c30007d5babecefed651827431569ee1ee.tar.gz |
Fix support for Django 1.7.
Diffstat (limited to 'tests/test_django.py')
-rw-r--r-- | tests/test_django.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_django.py b/tests/test_django.py index 95e0256..874c272 100644 --- a/tests/test_django.py +++ b/tests/test_django.py @@ -61,6 +61,8 @@ if django is not None: else: django_test = unittest +if django is not None and django.VERSION >= (1, 7, 0): + django.setup() test_state = {} |