From 501a5b8e5816c6be84853dfdcb9dcdfc747bafb1 Mon Sep 17 00:00:00 2001 From: Robert Sparks Date: Thu, 14 Dec 2023 09:35:30 -0600 Subject: [PATCH] fix: consider subseries when calculating downref (#6777) --- ietf/doc/models.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ietf/doc/models.py b/ietf/doc/models.py index 4d7a4f805c..fdda23ecd1 100644 --- a/ietf/doc/models.py +++ b/ietf/doc/models.py @@ -700,6 +700,8 @@ def is_downref(self): if self.source.type_id == "rfc": source_lvl = self.source.std_level_id + elif self.source.type_id in ["bcp","std"]: + source_lvl = self.source.type_id else: source_lvl = self.source.intended_std_level_id @@ -711,6 +713,8 @@ def is_downref(self): target_lvl = 'unkn' else: target_lvl = self.target.std_level_id + elif self.target.type_id in ["bcp", "std"]: + target_lvl = self.target.type_id else: if not self.target.intended_std_level: target_lvl = 'unkn'