SciPost Code Repository

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

remove duplicate event creation for nominations

parent af44658b
No related branches found
No related tags found
No related merge requests found
...@@ -727,12 +727,6 @@ def _hx_nomination_form(request, profile_id): ...@@ -727,12 +727,6 @@ def _hx_nomination_form(request, profile_id):
if nomination_form.is_valid(): if nomination_form.is_valid():
nomination = nomination_form.save() nomination = nomination_form.save()
nomination.add_event(description="Nominated", by=request.user.contributor) nomination.add_event(description="Nominated", by=request.user.contributor)
event = FellowshipNominationEvent(
nomination=nomination,
description="Nominated",
by=request.user.contributor,
)
event.save()
return HTMXResponse( return HTMXResponse(
f"{nomination.profile} successfully nominated to {nomination.college}.", f"{nomination.profile} successfully nominated to {nomination.college}.",
tag="success", tag="success",
......
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