mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-22 06:03:20 +00:00
com: use MarkdownInput on news
This commit is contained in:
parent
d2021ecf7e
commit
24dd258d0a
@ -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"],
|
||||
|
Loading…
Reference in New Issue
Block a user