From a8eef6e793a6be9ba611476b7a3a5cd998e1f0bd Mon Sep 17 00:00:00 2001 From: mpeltriaux Date: Tue, 6 Aug 2024 14:27:38 +0200 Subject: [PATCH] # Bugfix * fixes bug where archived codes has been selectable due to recursive building of child-parent hierarchy --- codelist/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/codelist/models.py b/codelist/models.py index 5d06172..a5b91a3 100644 --- a/codelist/models.py +++ b/codelist/models.py @@ -75,7 +75,8 @@ class KonovaCode(models.Model): return self children = KonovaCode.objects.filter( - parent=self + parent=self, + is_archived=False, ).order_by( order_by )