mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-22 14:13:21 +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:
|
class Meta:
|
||||||
model = News
|
model = News
|
||||||
fields = ["type", "title", "club", "summary", "content", "author"]
|
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(
|
start_date = forms.DateTimeField(
|
||||||
["%Y-%m-%d %H:%M:%S"],
|
["%Y-%m-%d %H:%M:%S"],
|
||||||
|
Loading…
Reference in New Issue
Block a user