From 38ef78b34f41338e7ea6d8912d04ed505e5f80d6 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Sat, 10 May 2014 17:00:02 +0200 Subject: History: add a creator field * automatically add creator to new created item * associated migrations * associated tests * tests --- example_project/settings.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'example_project') diff --git a/example_project/settings.py b/example_project/settings.py index 68ceab74b..201750936 100644 --- a/example_project/settings.py +++ b/example_project/settings.py @@ -2,7 +2,7 @@ # -*- coding: utf-8 -*- # Django settings for ishtar project. -import os +import os, sys from django.utils.translation import gettext_lazy as _ @@ -191,6 +191,9 @@ try: except ImportError, e: print 'Unable to load local_settings.py:', e +if 'test' in sys.argv: + SOUTH_TESTS_MIGRATE = False + if 'archaeological_files' in EXTRA_APPS: EXTRA_APPS.pop(EXTRA_APPS.index('archaeological_files')) INSTALLED_APPS.insert(INSTALLED_APPS.index('archaeological_operations'), -- cgit v1.2.3