diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-09-21 00:26:03 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-09-21 00:26:03 +0200 |
commit | 5957ad8979558c67a357a554201a1ecb4c428606 (patch) | |
tree | fe78f8109bbae1e761e79bdd7998f639d895f640 /archaeological_finds/tests.py | |
parent | 03cb63b9b6c5d0d2a63088528da24f187457f4a1 (diff) | |
download | Ishtar-5957ad8979558c67a357a554201a1ecb4c428606.tar.bz2 Ishtar-5957ad8979558c67a357a554201a1ecb4c428606.zip |
Generic manner of managing external id
Diffstat (limited to 'archaeological_finds/tests.py')
-rw-r--r-- | archaeological_finds/tests.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/archaeological_finds/tests.py b/archaeological_finds/tests.py index 05eef2c96..7ae81a1bb 100644 --- a/archaeological_finds/tests.py +++ b/archaeological_finds/tests.py @@ -366,6 +366,7 @@ class FindTest(FindInit, TestCase): "New label")) cr = ContextRecord.objects.get(pk=base_find.context_record.pk) cr.label = "new-label-too" + cr.skip_history_when_saving = True cr.save() base_find = models.BaseFind.objects.get(pk=base_find.pk) find = models.Find.objects.get(pk=find.pk) @@ -374,6 +375,7 @@ class FindTest(FindInit, TestCase): self.assertIn("new-label-too", base_find.external_id) cr.operation.code_patriarche = "PAT" + cr.operation.skip_history_when_saving = True cr.operation.save() base_find = models.BaseFind.objects.get(pk=base_find.pk) find = models.Find.objects.get(pk=find.pk) |