Skip to content

Commit

Permalink
fix: Add history line when changing the review deadline. (fixes #6598) (
Browse files Browse the repository at this point in the history
#7194)

* Add history line when changing the review deadline.

* chore: reduce redundancy

---------

Co-authored-by: Robert Sparks <rjsparks@nostrum.com>
  • Loading branch information
kivinen and rjsparks committed Mar 21, 2024
1 parent cec0e0c commit 79416cf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ietf/doc/views_review.py
Expand Up @@ -1053,7 +1053,11 @@ def edit_deadline(request, name, request_id):
if form.is_valid():
if form.cleaned_data['deadline'] != old_deadline:
form.save()
subject = "Deadline changed: {} {} review of {}-{}".format(review_req.team.acronym.capitalize(),review_req.type.name.lower(), review_req.doc.name, review_req.requested_rev)
subject = f"Deadline changed: {review_req.team.acronym.capitalize()} {review_req.type.name.lower()} review of {review_req.doc.name}"
if review_req.requested_rev:
subject += f"-{review_req.requested_rev}"
descr = "Deadine changed from {} to {}".format(old_deadline, review_req.deadline)
update_change_reason(review_req, descr)
msg = render_to_string("review/deadline_changed.txt", {
"review_req": review_req,
"old_deadline": old_deadline,
Expand Down

0 comments on commit 79416cf

Please sign in to comment.