From 114a3c5a30d334a0c2f69808794da9b05fe92345 Mon Sep 17 00:00:00 2001 From: Jennifer Richards Date: Tue, 22 Aug 2023 11:47:02 -0300 Subject: [PATCH] fix: Handle RelatedDocument.target as a Document (#6157) --- ietf/community/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ietf/community/utils.py b/ietf/community/utils.py index 4a6a2fadd..11d11a0a3 100644 --- a/ietf/community/utils.py +++ b/ietf/community/utils.py @@ -182,7 +182,7 @@ def docs_tracked_by_community_list(clist): doc_ids = set() for doc in clist.added_docs.all(): doc_ids.add(doc.pk) - doc_ids.update(alias.docs.first().pk for alias in doc.related_that_doc("became_rfc")) + doc_ids.update(rfc.pk for rfc in doc.related_that_doc("became_rfc")) for rule in clist.searchrule_set.all(): doc_ids = doc_ids | set(docs_matching_community_list_rule(rule).values_list("pk", flat=True))