From c9e7e5478aed8757821827e8f5358d7959257a2d Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 18 Jan 2023 23:33:56 +0100 Subject: Free search: "raw" index for reference - improve parent only search --- archaeological_context_records/tests.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'archaeological_context_records/tests.py') diff --git a/archaeological_context_records/tests.py b/archaeological_context_records/tests.py index 9842340f3..f0b12e0d6 100644 --- a/archaeological_context_records/tests.py +++ b/archaeological_context_records/tests.py @@ -429,8 +429,9 @@ class ContextRecordTest(ContextRecordInit, TestCase): self.assertIsNotNone(cr.search_vector) for key in ("label", "heeer"): self.assertIn(key, cr.search_vector) - cr.operation.code_patriarche = "PATRIARCHE" - cr.operation.save() + operation = models_ope.Operation.objects.get(pk=cr.operation.pk) + operation.code_patriarche = "PATRIARCHE" + operation.save() cr = models.ContextRecord.objects.get(pk=cr.pk) profile = get_current_profile() -- cgit v1.2.3