add post status and delete is_hidden

This commit is contained in:
2022-01-12 22:44:00 +00:00
parent 94afc0259b
commit 8c8a3d378a
8 changed files with 164 additions and 154 deletions

View File

@@ -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",