Skip to content

Commit 996b060

Browse files
committed
Fix a couple of details
- Legacy-Id: 2834
1 parent 98296cd commit 996b060

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

ietf/idrfc/views_edit.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ def get_initial_notify(doc):
457457
def edit_infoREDESIGN(request, name):
458458
"""Edit various Internet Draft attributes, notifying parties as
459459
necessary and logging changes as document events."""
460-
doc = get_object_or_404(Document, name=name)
460+
doc = get_object_or_404(Document, docalias__name=name)
461461
if doc.state_id == "expired":
462462
raise Http404()
463463

@@ -629,7 +629,7 @@ def request_resurrect(request, name):
629629
@group_required('Area_Director','Secretariat')
630630
def request_resurrectREDESIGN(request, name):
631631
"""Request resurrect of expired Internet Draft."""
632-
doc = get_object_or_404(Document, name=name)
632+
doc = get_object_or_404(Document, docalias__name=name)
633633
if doc.state_id != "expired":
634634
raise Http404()
635635

@@ -684,13 +684,15 @@ def resurrect(request, name):
684684
@group_required('Secretariat')
685685
def resurrectREDESIGN(request, name):
686686
"""Resurrect expired Internet Draft."""
687-
doc = get_object_or_404(Document, name=name)
687+
doc = get_object_or_404(Document, docalias__name=name)
688688
if doc.state_id != "expired":
689689
raise Http404()
690690

691691
login = request.user.get_profile().email()
692692

693693
if request.method == 'POST':
694+
save_document_in_history(doc)
695+
694696
e = doc.latest_event(type__in=('requested_resurrect', "completed_resurrect"))
695697
if e and e.type == 'requested_resurrect':
696698
email_resurrection_completed(request, doc, requester=e.by)
@@ -746,7 +748,7 @@ def add_comment(request, name):
746748
@group_required('Area_Director','Secretariat')
747749
def add_commentREDESIGN(request, name):
748750
"""Add comment to Internet Draft."""
749-
doc = get_object_or_404(Document, name=name)
751+
doc = get_object_or_404(Document, docalias__name=name)
750752
if not doc.iesg_state:
751753
raise Http404()
752754

0 commit comments

Comments
 (0)