File diff 6cb46c61d163 → d2174000e6f0
www/conservancy/apps/fossy/views.py
Show inline comments
...
 
@@ -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)