diff options
author | Étienne Loks <etienne.loks@proxience.com> | 2014-05-10 17:00:02 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@proxience.com> | 2014-05-10 17:00:02 +0200 |
commit | 44ced5dae411bf744a0d53701bcbb597b5db9b43 (patch) | |
tree | 91beee89db9f6f664ed0213fda2254e88e0b564b /example_project/settings.py | |
parent | 9b14f200bc7c832d5e4fe6dcc761699d7205f3de (diff) | |
download | Ishtar-44ced5dae411bf744a0d53701bcbb597b5db9b43.tar.bz2 Ishtar-44ced5dae411bf744a0d53701bcbb597b5db9b43.zip |
History: add a creator field
* automatically add creator to new created item
* associated migrations
* associated tests
* tests
Diffstat (limited to 'example_project/settings.py')
-rw-r--r-- | example_project/settings.py | 5 |
1 files changed, 4 insertions, 1 deletions
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'), |