From ae7a864bb7f67cba7cf6eefb8749b78b2f36eb61 Mon Sep 17 00:00:00 2001 From: Denys Konovalov Date: Fri, 2 Oct 2020 15:25:35 +0200 Subject: [PATCH] Update 02.10.2020 --- static/admin/config.yml | 4 ++++ static/admin/index.html | 24 ++++++++++++++++++++++-- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/static/admin/config.yml b/static/admin/config.yml index a4b5007..f0c8963 100644 --- a/static/admin/config.yml +++ b/static/admin/config.yml @@ -261,6 +261,8 @@ collections: create: true #editor: #preview: false + media_folder: '/static/media/schulchronik' + public_folder: '/media/schulchronik' fields: - {label: "Titel", name: "title", widget: "string"} - {label: "Entwurf", name: "draft", widget: "boolean", default: "false", required: false} @@ -275,6 +277,8 @@ collections: create: true editor: preview: false + media_folder: '/static/media/abiturienten' + public_folder: '/media/abiturienten' fields: - {label: "Titel", name: "title", widget: "string"} - {label: "Entwurf", name: "draft", widget: "boolean", default: "false", required: false} diff --git a/static/admin/index.html b/static/admin/index.html index 2e6ea11..7c93998 100644 --- a/static/admin/index.html +++ b/static/admin/index.html @@ -10,8 +10,28 @@