Skip to content

Commit 15c8ab9

Browse files
committed
Ensure the send_mail argument to save_position is a boolean.
- Legacy-Id: 15547
1 parent fb1baef commit 15c8ab9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/doc/views_ballot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ def edit_position(request, name, ballot_id):
209209

210210
form = EditPositionForm(request.POST, ballot_type=ballot.ballot_type)
211211
if form.is_valid():
212-
send_mail = request.POST.get("send_mail") or False
212+
send_mail = True if request.POST.get("send_mail") else False
213213
save_position(form, doc, ballot, ad, login, send_mail)
214214

215215
if send_mail:

0 commit comments

Comments
 (0)