From: Yoan Le Clanche Date: Thu, 27 Dec 2018 14:27:46 +0000 (+0100) Subject: fix send mail to administrators X-Git-Tag: 1.4.0~13 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=81f3a9410cf9c96818bd18984d2662fcbab5b245;p=teleforma.git fix send mail to administrators --- diff --git a/teleforma/forms.py b/teleforma/forms.py index 3e35d60d..2e25878a 100644 --- a/teleforma/forms.py +++ b/teleforma/forms.py @@ -102,7 +102,7 @@ class NewsItemForm(ModelForm): class WriteForm(PostmanWriteForm): recipients = BasicCommaSeparatedUserField(label=(_("Recipients"), _("Recipient")), help_text='') - course = ModelChoiceField(queryset=Course.objects.all()) + course = ModelChoiceField(queryset=Course.objects.all(), required=False) class Meta(PostmanWriteForm.Meta): fields = ('course', 'recipients', 'subject', 'body') diff --git a/teleforma/templates/postman/base_write.html b/teleforma/templates/postman/base_write.html index ac248537..a68b6086 100644 --- a/teleforma/templates/postman/base_write.html +++ b/teleforma/templates/postman/base_write.html @@ -37,7 +37,6 @@