Skip to content

Commit

Permalink
When importing responsible parties, if the target is specified, pre-s…
Browse files Browse the repository at this point in the history
…elect its radio button.
jon-ide committed Jan 10, 2024
1 parent 59c1b00 commit 0824e80
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions webapp/home/views.py
Original file line number Diff line number Diff line change
@@ -1568,6 +1568,11 @@ def sort_key(item):
("Project Personnel", "Project Personnel")]
form.target.choices = targets

if target:
# If the target is specified, set the target to the specified value
# This is used, for example, when the user clicks "Import Creator" from the Creator Select page
form.target.data = target

if request.method == 'POST' and BTN_CANCEL in request.form:
return redirect(get_back_url())

0 comments on commit 0824e80

Please sign in to comment.