From 4a814ea417ef239f3c5e291ba7e8747c04b38e14 Mon Sep 17 00:00:00 2001 From: Chatewgne Date: Tue, 27 Feb 2024 18:48:13 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20[BUG]=20Fix=20reference=20points?= =?UTF-8?q?=20parsing=20in=20GeotrekCourseParser=20(refs=20#3569)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- geotrek/outdoor/parsers.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/geotrek/outdoor/parsers.py b/geotrek/outdoor/parsers.py index f165778fe9..ba0249e30c 100644 --- a/geotrek/outdoor/parsers.py +++ b/geotrek/outdoor/parsers.py @@ -218,6 +218,11 @@ def filter_type(self, src, val): return CourseType.objects.get(pk=type_id) return None + def filter_points_reference(self, src, val): + if val: + return str(val) + return None + def parse(self, filename=None, limit=None): self.init_outdoor_category('type', CourseType, join_field='practice') super().parse(filename, limit)