From 1d8cacb9161bc43b697b534e3192b874fce2e83c Mon Sep 17 00:00:00 2001 From: Fabian Braun Date: Fri, 6 Oct 2023 12:18:20 +0200 Subject: [PATCH] Enable abstract and post_text fields again --- djangocms_blog/admin.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/djangocms_blog/admin.py b/djangocms_blog/admin.py index 9913fa0e..3f2f6fd6 100644 --- a/djangocms_blog/admin.py +++ b/djangocms_blog/admin.py @@ -350,8 +350,8 @@ class PostAdmin( position matches. """ _fieldset_extra_fields_position = { - "abstract": (0, 1), - "post_text": (0, 1), + "content__abstract": (0, 1), + "content__post_text": (0, 1), "sites": (1, 1, 0), "author": (1, 1, 0), "enable_liveblog": (2, 1, 2), @@ -585,13 +585,11 @@ def get_fieldsets(self, request, obj=None): if related: related_posts = self._get_available_posts(config) if abstract: - # self._patch_fieldsets(fsets, "abstract") - pass + self._patch_fieldsets(fsets, "content__abstract") if not placeholder: - self._patch_fieldsets(fsets, "post_text") + self._patch_fieldsets(fsets, "content__post_text") if get_setting("MULTISITE") and not self.has_restricted_sites(request): - # self._patch_fieldsets(fsets, "sites") - pass + self._patch_fieldsets(fsets, "sites") if request.user.is_superuser: self._patch_fieldsets(fsets, "author") if apps.is_installed("djangocms_blog.liveblog"):