add post status and delete is_hidden
This commit is contained in:
@@ -39,13 +39,13 @@ class NewsForm(PostForm):
|
||||
"title",
|
||||
"subtitle",
|
||||
"tags",
|
||||
"status",
|
||||
"image",
|
||||
"body",
|
||||
"slug",
|
||||
"author",
|
||||
"public_date",
|
||||
"is_pinned",
|
||||
"is_hidden",
|
||||
]
|
||||
|
||||
labels = {
|
||||
@@ -57,7 +57,6 @@ class NewsForm(PostForm):
|
||||
"author": _("Autor"),
|
||||
"public_date": _("Veröffentlichung"),
|
||||
"is_pinned": _("Post anheften"),
|
||||
"is_hidden": _("Post verstecken"),
|
||||
}
|
||||
|
||||
help_texts = {
|
||||
@@ -68,9 +67,6 @@ class NewsForm(PostForm):
|
||||
"is_pinned": _(
|
||||
"Dieser Post soll an die Startseite als erster Post angeheftet werden."
|
||||
),
|
||||
"is_hidden": _(
|
||||
"Dieser Post soll im News Feed nicht auftauchen, z.B. Impressum."
|
||||
),
|
||||
}
|
||||
|
||||
widgets = {"body": CKEditorUploadingWidget(config_name="default")}
|
||||
@@ -89,6 +85,7 @@ class EventForm(PostForm):
|
||||
"title",
|
||||
"subtitle",
|
||||
"tags",
|
||||
"status",
|
||||
"image",
|
||||
"body",
|
||||
"event_start",
|
||||
|
||||
Reference in New Issue
Block a user