Skip to content

Commit 5e00182

Browse files
committed
Add the last call expiration date to the document header,
and remove duplicate code for producing the iest state summary. - Legacy-Id: 6612
1 parent 0ff1e5d commit 5e00182

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

ietf/doc/views_doc.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -140,13 +140,7 @@ def document_main(request, name, rev=None):
140140

141141
iesg_state = doc.get_state("draft-iesg")
142142
iesg_substate = doc.tags.filter(slug__in=IESG_SUBSTATE_TAGS)
143-
if iesg_state:
144-
iesg_state_summary = iesg_state.name
145-
if iesg_substate:
146-
iesg_state_summary = iesg_state_summary + "::"+"::".join(tag.name for tag in iesg_substate)
147-
else:
148-
iesg_state_summary = None
149-
143+
iesg_state_summary = doc.friendly_state()
150144
can_edit = has_role(request.user, ("Area Director", "Secretariat"))
151145
stream_slugs = StreamName.objects.values_list("slug", flat=True)
152146
can_change_stream = bool(can_edit or (

0 commit comments

Comments
 (0)