From 26a36c966e5d8c1a0dfe002a0cad54cff3ea6554 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89lie=20Bouttier?= Date: Tue, 1 Aug 2017 01:29:12 +0200 Subject: [PATCH] fix typo in scheme for url generation --- cfp/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cfp/views.py b/cfp/views.py index 8a7740e..2e58138 100644 --- a/cfp/views.py +++ b/cfp/views.py @@ -54,7 +54,7 @@ def talk_proposal(request, conference, talk_id=None, participant_id=None): talk.save() talk.speakers.add(participant) - protocol = 'http' if request.is_secure() else 'http' + protocol = 'https' if request.is_secure() else 'http' base_url = protocol+'://'+site.domain url_talk_proposal_edit = base_url + reverse('talk-proposal-edit', args=[talk.token, participant.token]) url_talk_proposal_speaker_add = base_url + reverse('talk-proposal-speaker-add', args=[talk.token]) @@ -207,7 +207,7 @@ def conference(request, conference): new_conference = form.save() new_staff = set(new_conference.staff.all()) added_staff = new_staff - old_staff - protocol = 'http' if request.is_secure() else 'http' + protocol = 'https' if request.is_secure() else 'http' base_url = protocol+'://'+conference.site.domain url_login = base_url + reverse('login') url_password_reset = base_url + reverse('password_reset')