Skip to content

Commit f62bfc7

Browse files
committed
Tweak ipr search to only look for IPRs in the appropriate state.
- Legacy-Id: 3200
1 parent 63ec3f9 commit f62bfc7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ietf/idrfc/idrfc_wrapper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -513,10 +513,10 @@ def __init__(self, id, rfc):
513513
self.id = id
514514
self.rfc = rfc
515515
if id:
516-
iprs = IprDraft.objects.filter(document=self.id.tracker_id)
516+
iprs = IprDraft.objects.filter(document=self.id.tracker_id, ipr__status__in=[1,3])
517517
self.iprUrl = "/ipr/search?option=document_search&id_document_tag=" + str(self.id.tracker_id)
518518
elif rfc:
519-
iprs = IprRfc.objects.filter(document=self.rfc.rfc_number)
519+
iprs = IprRfc.objects.filter(document=self.rfc.rfc_number, ipr__status__in=[1,3])
520520
self.iprUrl = "/ipr/search?option=rfc_search&rfc_search=" + str(self.rfc.rfc_number)
521521
else:
522522
raise ValueError("Construction with null id and rfc")

0 commit comments

Comments
 (0)