Skip to content

Commit

Permalink
use the default backend for admin form
Browse files Browse the repository at this point in the history
  • Loading branch information
knifecake committed Dec 27, 2024
1 parent de8fa9d commit 44b6ead
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion anchor/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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()

Expand Down

0 comments on commit 44b6ead

Please sign in to comment.