From a3f32323b13f60f64ce0d3bd877347a1910cb134 Mon Sep 17 00:00:00 2001 From: j Date: Mon, 24 Mar 2025 15:34:46 +0000 Subject: [PATCH] don't hide gallery descriptions field, even if we don't use it --- content/admin.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/content/admin.py b/content/admin.py index 87a4199..79782ba 100644 --- a/content/admin.py +++ b/content/admin.py @@ -52,16 +52,6 @@ class MaxLengthAdminMarkdownxWidget(AdminMarkdownxWidget): 'js/maxlength_count.js', ) -class GalleryAdminForm(forms.ModelForm): - """Users never need to enter a description on a gallery.""" - - class Meta: - model = Gallery - exclude = ['description'] - - -class GalleryAdmin(GalleryAdminDefault): - form = GalleryAdminForm class ContentAdmin(admin.ModelAdmin): save_on_top = True @@ -76,6 +66,4 @@ class ContentAdmin(admin.ModelAdmin): admin.site.register(Content, ContentAdmin) -admin.site.unregister(Gallery) -admin.site.register(Gallery, GalleryAdmin)