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

@ -289,7 +289,6 @@ class PostAdmin(PlaceholderAdminMixin, FrontendEditableAdminMixin,
class BlogConfigAdmin(BaseAppHookConfig, TranslatableAdmin): class BlogConfigAdmin(BaseAppHookConfig, TranslatableAdmin):
@property @property
def declared_fieldsets(self): def declared_fieldsets(self):
return self.get_fieldsets(None) return self.get_fieldsets(None)

View file

@ -191,7 +191,10 @@ class Post(KnockerModel, ModelMeta, TranslatableModel):
objects = GenericDateTaggedManager() objects = GenericDateTaggedManager()
tags = TaggableManager(blank=True, related_name='djangocms_blog_tags') 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 = { _metadata = {
'title': 'get_title', 'title': 'get_title',