Skip to content

Commit 85b036e

Browse files
committed
Only output stream tags in get_annotation_tags_for_draft
- Legacy-Id: 3824
1 parent 7971354 commit 85b036e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ietf/ietfworkflows/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ def get_workflow_history_for_draft(draft, entry_type=None):
125125
def get_annotation_tags_for_draft(draft):
126126
if settings.USE_DB_REDESIGN_PROXY_CLASSES:
127127
from redesign.name.proxy import AnnotationTagObjectRelationProxy
128-
return AnnotationTagObjectRelationProxy.objects.filter(document=draft.pk)
128+
from redesign.doc.utils import get_tags_for_stream_id
129+
return AnnotationTagObjectRelationProxy.objects.filter(document=draft.pk, slug__in=get_tags_for_stream_id(draft.stream_id))
129130

130131
ctype = ContentType.objects.get_for_model(draft)
131132
tags = AnnotationTagObjectRelation.objects.filter(content_type=ctype, content_id=draft.pk)

0 commit comments

Comments
 (0)