Fix speakerproposal form to have email as not required (set to logged in user if not filled out)

This commit is contained in:
Víðir Valberg Guðmundsson 2019-06-16 15:57:51 +02:00
parent f1da1f3599
commit 226fb37aa1

View file

@ -13,6 +13,11 @@ class SpeakerProposalForm(forms.ModelForm):
The SpeakerProposalForm. Takes an EventType in __init__ and changes fields accordingly. 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: class Meta:
model = SpeakerProposal model = SpeakerProposal
fields = [ fields = [