SciPost Code Repository

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

fix referee auto-reminders toggling

parent f9831cce
No related branches found
No related tags found
No related merge requests found
......@@ -1278,10 +1278,10 @@ def invite_referee(request, identifier_w_vn_nr, profile_id, auto_reminders_allow
def set_refinv_auto_reminder(request, invitation_id, auto_reminders):
"""Set the value of the Boolean for automatic refereeing reminders."""
invitation = get_object_or_404(RefereeInvitation, pk=invitation_id)
if auto_reminders == "0":
if auto_reminders == 0:
invitation.auto_reminders_allowed = False
messages.success(request, "Auto reminders succesfully turned off.")
elif auto_reminders == "1":
elif auto_reminders == 1:
invitation.auto_reminders_allowed = True
messages.success(request, "Auto reminders succesfully turned on.")
else:
......
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