From 226fb37aa1080d3543d2adbc7d1f0b35423ac9c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=AD=C3=B0ir=20Valberg=20Gu=C3=B0mundsson?= Date: Sun, 16 Jun 2019 15:57:51 +0200 Subject: [PATCH] Fix speakerproposal form to have email as not required (set to logged in user if not filled out) --- src/program/forms.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/program/forms.py b/src/program/forms.py index 5bf7be07..fed70538 100644 --- a/src/program/forms.py +++ b/src/program/forms.py @@ -13,6 +13,11 @@ class SpeakerProposalForm(forms.ModelForm): The SpeakerProposalForm. Takes an EventType in __init__ and changes fields accordingly. """ + email = forms.EmailField( + required=False, + help_text="The email of the speaker (defaults to the logged in user if empty).", + ) + class Meta: model = SpeakerProposal fields = [