@@ -14,13 +14,13 @@ class CommunityTrackProposalCreateView(CreateView):
template_name = 'fossy/community_track_proposal_form.html'
def form_valid(self, form):
intro = 'The following FOSSY community track proposal has been submitted:\n\n'
body = intro + '\n'.join(['{}: {}'.format(k, v) for k, v in form.cleaned_data.items() if k != 'agreement_terms'])
send_mail(
'Community track proposal {}'.format(form.cleaned_data['track_name']),
'Community track proposal {}'.format(form.cleaned_data['title']),
body,
'conference@sfconservancy.org',
['conference@sfconservancy.org'],
)
return super().form_valid(form)