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')
|
enhance_exclude = ('main_image', 'tags')
|
||||||
_fieldsets = [
|
_fieldsets = [
|
||||||
(None, {
|
(None, {
|
||||||
'fields': [['title', 'categories', 'publish', 'app_config'], ['related',]]
|
'fields': [['title', 'categories', 'publish', 'app_config'], ['related', ]]
|
||||||
}),
|
}),
|
||||||
(_('Info'), {
|
(_('Info'), {
|
||||||
'fields': [['slug', 'tags'],
|
'fields': [['slug', 'tags'],
|
||||||
|
@ -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)
|
||||||
|
|
|
@ -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',
|
||||||
|
|
Loading…
Reference in a new issue