Fix odd boolean calculation in nomcom view

- Legacy-Id: 6923
This commit is contained in:
Ole Laursen 2013-12-13 16:48:37 +00:00
parent 892c7d43ce
commit 3febf7d216

View file

@ -702,9 +702,8 @@ def edit_nominee(request, year, nominee_id):
@role_required("Nomcom Chair", "Nomcom Advisor")
def edit_nomcom(request, year):
nomcom = get_nomcom_by_year(year)
has_publickey = nomcom.public_key and True or False
if has_publickey:
if nomcom.public_key:
message = ('warning', 'Previous data will remain encrypted with the old key')
else:
message = ('warning', 'The nomcom has not a public key yet')