SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 26988f35 authored by George Katsikas's avatar George Katsikas :goat:
Browse files

search profiles only when matching authors

parent f6fb874b
No related branches found
No related tags found
No related merge requests found
......@@ -121,12 +121,12 @@ def _hx_author_profile_action(
submission = get_object_or_404(
Submission, preprint__identifier_w_vn_nr=identifier_w_vn_nr
)
profile = get_object_or_404(Profile, pk=profile_id)
author_profile, created = SubmissionAuthorProfile.objects.get_or_create(
submission=submission,
order=order,
)
if action == "match":
profile = get_object_or_404(Profile, pk=profile_id)
author_profile.profile = profile
# add Submission's topics to profile:
profile.topics.add(*submission.topics.all())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment