From 81f3a9410cf9c96818bd18984d2662fcbab5b245 Mon Sep 17 00:00:00 2001 From: Yoan Le Clanche Date: Thu, 27 Dec 2018 15:27:46 +0100 Subject: [PATCH] fix send mail to administrators --- teleforma/forms.py | 2 +- teleforma/templates/postman/base_write.html | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) 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 @@