From 24dd258d0abb8fd3f887b93a44f8f92b2bd9af3e Mon Sep 17 00:00:00 2001 From: Bartuccio Antoine Date: Thu, 20 Dec 2018 15:09:44 +0100 Subject: [PATCH] com: use MarkdownInput on news --- com/views.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/com/views.py b/com/views.py index 2a399a82..0a13fce8 100644 --- a/com/views.py +++ b/com/views.py @@ -197,7 +197,12 @@ class NewsForm(forms.ModelForm): class Meta: model = News fields = ["type", "title", "club", "summary", "content", "author"] - widgets = {"author": forms.HiddenInput, "type": forms.RadioSelect} + widgets = { + "author": forms.HiddenInput, + "type": forms.RadioSelect, + "summary": MarkdownInput, + "content": MarkdownInput, + } start_date = forms.DateTimeField( ["%Y-%m-%d %H:%M:%S"],