Code format corrected
This commit is contained in:
parent
b2fbf1123c
commit
c2b97edb24
2 changed files with 5 additions and 3 deletions
|
@ -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)
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue