Commit 24dd258d authored by Sli's avatar Sli
Browse files

com: use MarkdownInput on news

parent d2021ecf
......@@ -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"],
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment