Code format corrected

This commit is contained in:
Dipen Patel 2017-04-07 13:18:36 +05:30
parent b2fbf1123c
commit c2b97edb24
2 changed files with 5 additions and 3 deletions

View file

@ -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)

View file

@ -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',