Skip to content

Commit

Permalink
fix: consider subseries when calculating downref (#6777)
Browse files Browse the repository at this point in the history
  • Loading branch information
rjsparks authored Dec 14, 2023
1 parent 6083205 commit 501a5b8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ietf/doc/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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'
Expand Down

0 comments on commit 501a5b8

Please sign in to comment.