From ecb6b71d3aee32e083f1e8da906ceef4fd7801ce Mon Sep 17 00:00:00 2001 From: Quentin André Date: Thu, 19 Aug 2021 01:28:40 +0200 Subject: stable version of setDefaultGeoItems --- archaeological_finds/tests.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'archaeological_finds/tests.py') diff --git a/archaeological_finds/tests.py b/archaeological_finds/tests.py index 688699d3e..955b1aedc 100644 --- a/archaeological_finds/tests.py +++ b/archaeological_finds/tests.py @@ -2539,7 +2539,7 @@ class GeomaticTest(FindInit, TestCase): point_2d_bf = GEOSGeometry("POINT({} {})".format(3.9, 2.9), srid=4326) xy_bf = 3.9, 2.9 - pks = {'cr': {}, 'bf': {}} + pks = {} ope.multi_polygon = "SRID=4326;" + poly_ope ope.multi_polygon_source = "P" @@ -2574,7 +2574,7 @@ class GeomaticTest(FindInit, TestCase): cr.point_2d = point_2d_cr cr.save() cr = ContextRecord.objects.get(pk=cr.pk) - pks['cr'][label_cr] = cr.pk + pks[label_cr] = cr.pk bfs = [] for bf_geom in list_geom_bf: @@ -2596,7 +2596,7 @@ class GeomaticTest(FindInit, TestCase): bf.save() bf = models.BaseFind.objects.get(pk=bf.pk) bfs.append(bf) - pks['bf'][default['label']] = bf.pk + pks[default['label']] = bf.pk find = models.Find.objects.create() find.base_finds.add(bf) -- cgit v1.2.3