summaryrefslogtreecommitdiff
path: root/django_testscenarios/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'django_testscenarios/tests.py')
-rw-r--r--django_testscenarios/tests.py5
1 files changed, 5 insertions, 0 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