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 | 0cd398940a316afe8fc7ec2b0102c793c3f4342b (patch) | |
| tree | fe78f8109bbae1e761e79bdd7998f639d895f640 /archaeological_finds/tests.py | |
| parent | f46de1b6d4cbf832ce6f22fe82a5377b5e0ed6a4 (diff) | |
| download | Ishtar-0cd398940a316afe8fc7ec2b0102c793c3f4342b.tar.bz2 Ishtar-0cd398940a316afe8fc7ec2b0102c793c3f4342b.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) |
