diff options
-rw-r--r-- | django_testscenarios/tests.py | 5 | ||||
-rwxr-xr-x | setup.py | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/django_testscenarios/tests.py b/django_testscenarios/tests.py index b20f494..5fad151 100644 --- a/django_testscenarios/tests.py +++ b/django_testscenarios/tests.py @@ -17,6 +17,7 @@ # along with django-testscenarios. If not, see <http://www.gnu.org/licenses/>. import unittest +import django from django.db import models, transaction from django.test import ( @@ -30,6 +31,10 @@ from django_testscenarios.ubertest import ( TransactionTestCaseWithScenarios) +if hasattr(django, 'setup'): + django.setup() + + class TestModel(models.Model): """ Model for testing database configuration/initialization @@ -22,7 +22,7 @@ from setuptools import setup setup( name='django-testscenarios', - version="0.7.3", + version="0.7.4", author="Linaro Limited", author_email="lava-team@linaro.org", description="Test scenarios for Django", |