summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2017-01-18 23:25:01 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2017-01-18 23:25:01 +0100
commitdf76619c3f5221716de129ba5b2dbd80a7194b0c (patch)
treed162236fcf427c58e058d43981fb451f3a56704b /ishtar_common/models.py
parent1dbb0a765456dead8ef85f446b82f7737762f56a (diff)
downloadIshtar-df76619c3f5221716de129ba5b2dbd80a7194b0c.tar.bz2
Ishtar-df76619c3f5221716de129ba5b2dbd80a7194b0c.zip
Disable cache generation when loading from fixture
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r--ishtar_common/models.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py
index c4a09879e..d58d549c8 100644
--- a/ishtar_common/models.py
+++ b/ishtar_common/models.py
@@ -60,7 +60,7 @@ from simple_history.models import HistoricalRecords as BaseHistoricalRecords
from ishtar_common.ooo_replace import ooo_replace
from ishtar_common.model_merging import merge_model_objects
-from ishtar_common.utils import get_cache
+from ishtar_common.utils import get_cache, disable_for_loaddata
from ishtar_common.data_importer import Importer, ImportFormater, \
IntegerFormater, FloatFormater, UnicodeFormater, DateFormater, \
TypeFormater, YearFormater, StrToBoolean, FileFormater
@@ -308,6 +308,7 @@ class Cached(object):
return None
+@disable_for_loaddata
def post_save_cache(sender, **kwargs):
sender.refresh_cache()