From 2fde3f0fa3d41a36cea3a677723d3d502889362b 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 5d06172e..a5b91a33 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 )