From 471ba799664fd6723fd46d6631725b69773e2d14 Mon Sep 17 00:00:00 2001 From: Chatewgne Date: Thu, 22 Feb 2024 17:14:15 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=AB=20[IMPR]=20Fix=20objects=20deletio?= =?UTF-8?q?ns=20in=20OutdoorParser=20(refs=20#3569)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- geotrek/outdoor/parsers.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/geotrek/outdoor/parsers.py b/geotrek/outdoor/parsers.py index 79a60edfaa..0e278c8086 100644 --- a/geotrek/outdoor/parsers.py +++ b/geotrek/outdoor/parsers.py @@ -165,6 +165,7 @@ def end(self): continue child_site.parent = parent_site child_site.save() + super().end() class GeotrekCourseParser(GeotrekOutdoorParser): @@ -250,5 +251,6 @@ def end(self): self.add_warning(f"Trying to retrieve missing child Course (UUID: {child}) for parent Course (UUID: {parent})") continue OrderedCourseChild.objects.update_or_create(parent=parent_course, - child=child_course, - defaults={'order': i}) + child=child_course, + defaults={'order': i}) + super().end()