nice image selection from library 2

This commit is contained in:
Tobias Brunner 2025-07-08 11:59:43 +02:00
parent 7e46dc71ec
commit 2c217939b0
No known key found for this signature in database
3 changed files with 4 additions and 4 deletions

View file

@ -18,7 +18,7 @@ class ArticleAdminForm(forms.ModelForm):
model = Article model = Article
fields = "__all__" fields = "__all__"
widgets = { widgets = {
'image_library': ImageLibraryWidget(), "image_library": ImageLibraryWidget(),
} }
def clean_title(self): def clean_title(self):

View file

@ -18,7 +18,7 @@ class CloudProviderAdminForm(forms.ModelForm):
model = CloudProvider model = CloudProvider
fields = "__all__" fields = "__all__"
widgets = { widgets = {
'image_library': ImageLibraryWidget(), "image_library": ImageLibraryWidget(),
} }
@ -29,7 +29,7 @@ class ConsultingPartnerAdminForm(forms.ModelForm):
model = ConsultingPartner model = ConsultingPartner
fields = "__all__" fields = "__all__"
widgets = { widgets = {
'image_library': ImageLibraryWidget(), "image_library": ImageLibraryWidget(),
} }

View file

@ -24,7 +24,7 @@ class ServiceAdminForm(forms.ModelForm):
model = Service model = Service
fields = "__all__" fields = "__all__"
widgets = { widgets = {
'image_library': ImageLibraryWidget(), "image_library": ImageLibraryWidget(),
} }