From 7a421b12b107296d05a95a4b8c2da2fd50825b15 Mon Sep 17 00:00:00 2001 From: Iacopo Spalletti Date: Sun, 27 Apr 2014 04:25:03 +0200 Subject: [PATCH] Fix settings import --- djangocms_blog/admin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/djangocms_blog/admin.py b/djangocms_blog/admin.py index da4c5df..e545656 100755 --- a/djangocms_blog/admin.py +++ b/djangocms_blog/admin.py @@ -7,6 +7,7 @@ from django.conf import settings from parler.admin import TranslatableAdmin from .models import Post, BlogCategory +from .settings import BLOG_USE_PLACEHOLDER class BlogCategoryAdmin(EnhancedModelAdminMixin, TranslatableAdmin): @@ -48,7 +49,7 @@ class PostAdmin(EnhancedModelAdminMixin, FrontendEditableAdmin, def get_fieldsets(self, request, obj=None): fsets = deepcopy(self._fieldsets) - if not settings.BLOG_USE_PLACEHOLDER: + if not BLOG_USE_PLACEHOLDER: fsets[0][1]['fields'].append('post_text') if request.user.is_superuser: fsets[1][1]['fields'][0].append('author')