From 296ee1376450adf58a040a9da816a100fa5d2ec9 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 12 Sep 2024 12:39:40 +0200 Subject: ⚡️ improve performance - external ID: prevent double save - user UPDATE query instead of save - remove dead code "BulkUpdatedItem" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- archaeological_finds/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'archaeological_finds/tests.py') diff --git a/archaeological_finds/tests.py b/archaeological_finds/tests.py index 5a7e53849..e7b520fb6 100644 --- a/archaeological_finds/tests.py +++ b/archaeological_finds/tests.py @@ -1148,7 +1148,7 @@ class FindTest(FindInit, TestCase): cr.operation.save() base_find = models.BaseFind.objects.get(pk=base_find.pk) find = models.Find.objects.get(pk=find.pk) - cr = ContextRecord.objects.get(pk=cr.pk) + ContextRecord.objects.get(pk=cr.pk) self.assertIn("PAT", find.external_id) self.assertIn("PAT", base_find.external_id) -- cgit v1.2.3