add labels and help texts in admin view

This commit is contained in:
2022-01-07 11:21:06 +00:00
parent f736e4deb7
commit c67bab0201

View File

@@ -11,3 +11,15 @@ class AlbumAdminForm(forms.ModelForm):
fields = "__all__"
widgets = {"description": CKEditorUploadingWidget(config_name="default")}
labels = {
"slug": _("Permalink"),
"description": _("Beschreibung"),
}
help_texts = {
"folder_name": _("Füge den Ordnername (ohne Pfade) ein."),
"thumbnail": _(
"Füge den vollständigen Dateiname (ohne Pfade) ein, wenn dieser als Thumbnail verwendet werden soll."
),
}