Skip to content

Commit c0cda6d

Browse files
committed
Fixed problem with displaying ISE stream documents.
- Legacy-Id: 4747
1 parent 3038396 commit c0cda6d

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

ietf/community/display.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,18 +53,18 @@ class StatusField(DisplayField):
5353
def get_value(self, document, raw=False):
5454
draft_state = document.get_state('draft')
5555
stream_state = document.get_state('draft-stream-%s' % (document.stream.slug)) if document.stream else None
56-
iesg_state = document.get_state('draft-iesg')
56+
iesg_state = document.get_state('draft-iesg') or ''
5757
rfceditor_state = document.get_state('draft-rfceditor')
5858
if draft_state.slug == 'rfc':
5959
state = draft_state.name
60-
elif rfceditor_state:
61-
state = "%s<br/>%s<br/>%s" % (stream_state.name, iesg_state.name, rfceditor_state.name)
62-
elif iesg_state:
63-
state = "%s<br/>%s" % (stream_state.name, iesg_state.name)
64-
elif stream_state:
65-
state = stream_state.name
6660
else:
6761
state = ""
62+
if stream_state:
63+
state = state + ("%s<br/>" % stream_state.name)
64+
if iesg_state:
65+
state = state + ("%s<br/>" % iesg_state.name)
66+
if rfceditor_state:
67+
state = state + ("%s<br/>" % rfceditor_state.name)
6868
#
6969
if draft_state.slug == 'rfc':
7070
tags = ""

0 commit comments

Comments
 (0)