From c2b97edb24002b3cc60764ce9b43707dcd4cec6e Mon Sep 17 00:00:00 2001 From: Dipen Patel Date: Fri, 7 Apr 2017 13:18:36 +0530 Subject: [PATCH] Code format corrected --- djangocms_blog/admin.py | 3 +-- djangocms_blog/models.py | 5 ++++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/djangocms_blog/admin.py b/djangocms_blog/admin.py index e01c5e3..159bb9d 100755 --- a/djangocms_blog/admin.py +++ b/djangocms_blog/admin.py @@ -86,7 +86,7 @@ class PostAdmin(PlaceholderAdminMixin, FrontendEditableAdminMixin, enhance_exclude = ('main_image', 'tags') _fieldsets = [ (None, { - 'fields': [['title', 'categories', 'publish', 'app_config'], ['related',]] + 'fields': [['title', 'categories', 'publish', 'app_config'], ['related', ]] }), (_('Info'), { 'fields': [['slug', 'tags'], @@ -289,7 +289,6 @@ class PostAdmin(PlaceholderAdminMixin, FrontendEditableAdminMixin, class BlogConfigAdmin(BaseAppHookConfig, TranslatableAdmin): - @property def declared_fieldsets(self): return self.get_fieldsets(None) diff --git a/djangocms_blog/models.py b/djangocms_blog/models.py index 47a343f..8d34aac 100644 --- a/djangocms_blog/models.py +++ b/djangocms_blog/models.py @@ -191,7 +191,10 @@ class Post(KnockerModel, ModelMeta, TranslatableModel): objects = GenericDateTaggedManager() tags = TaggableManager(blank=True, related_name='djangocms_blog_tags') - related = models.ManyToManyField('self', verbose_name=_('Related Posts'), blank=True, symmetrical=False) + related = models.ManyToManyField('self', + verbose_name=_('Related Posts'), + blank=True, + symmetrical=False) _metadata = { 'title': 'get_title',