Skip to content

Commit 6a35431

Browse files
committed
Remember to create a DocAlias when creating a review document
- Legacy-Id: 11361
1 parent 7cbe36f commit 6a35431

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ietf/doc/views_review.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from django.core.exceptions import ValidationError
1010
from django.template.loader import render_to_string
1111

12-
from ietf.doc.models import Document, NewRevisionDocEvent, DocEvent, State
12+
from ietf.doc.models import Document, NewRevisionDocEvent, DocEvent, State, DocAlias
1313
from ietf.ietfauth.utils import is_authorized_in_doc_stream, user_is_person
1414
from ietf.name.models import ReviewRequestStateName, ReviewResultName, DocTypeName
1515
from ietf.group.models import Role
@@ -396,6 +396,7 @@ def complete_review(request, name, request_id):
396396
review.external_url = form.cleaned_data['review_url']
397397
review.save()
398398
review.set_state(State.objects.get(type="review", slug="active"))
399+
DocAlias.objects.create(document=review, name=review.name)
399400

400401
NewRevisionDocEvent.objects.create(
401402
type="new_revision",

0 commit comments

Comments
 (0)