add labels and help texts in admin view
This commit is contained in:
@@ -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."
|
||||
),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user