From 44b6eadbef4f38ac3abfae9db16d2bc02bd84fe5 Mon Sep 17 00:00:00 2001 From: Elias Hernandis Date: Fri, 27 Dec 2024 09:44:50 +0100 Subject: [PATCH] use the default backend for admin form --- anchor/admin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/anchor/admin.py b/anchor/admin.py index 1e52e20..69fdf7b 100644 --- a/anchor/admin.py +++ b/anchor/admin.py @@ -5,6 +5,7 @@ from django.utils.html import format_html from anchor.models import Attachment, Blob, VariantRecord +from anchor.settings import anchor_settings class AdminBlobForm(forms.ModelForm): @@ -18,7 +19,7 @@ class Meta: for k, v in settings.STORAGES.items() if v["BACKEND"] != "django.contrib.staticfiles.storage.StaticFilesStorage" ], - initial="default", + initial=anchor_settings.DEFAULT_STORAGE_BACKEND, ) file = forms.FileField()