Skip to content

Commit

Permalink
refactor: When invoking reclassification from a view-feedback page, l…
Browse files Browse the repository at this point in the history
…oad the corresponding reclassify-feedback page
  • Loading branch information
pselkirk committed Jul 26, 2023
1 parent 0b373d2 commit 842e730
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ietf/nomcom/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -770,6 +770,11 @@ def process_nomination_status(request, year, nominee_position_id, state, date, h
@role_required("Nomcom Chair", "Nomcom Advisor")
@nomcom_private_key_required
def reclassify_feedback(request, year):
referer = request.META.get('HTTP_REFERER', None)
if 'nominee' in referer or 'topic' in referer or 'unrelated' in referer:
url = referer.replace('view', 'reclassify')
return HttpResponseRedirect(url)

return view_or_reclassify_feedback(request, year, reclassify=True)

@role_required("Nomcom")
Expand Down

0 comments on commit 842e730

Please sign in to comment.