Skip to content

Commit

Permalink
Enable abstract and post_text fields again
Browse files Browse the repository at this point in the history
  • Loading branch information
fsbraun committed Oct 6, 2023
1 parent a10086f commit 1d8cacb
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions djangocms_blog/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down Expand Up @@ -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"):
Expand Down

0 comments on commit 1d8cacb

Please sign in to comment.