code formatting
This commit is contained in:
parent
29ff92f19a
commit
09435982e4
1 changed files with 4 additions and 2 deletions
|
@ -171,7 +171,8 @@ class Post(KnockerModel, ModelMeta, TranslatableModel):
|
||||||
|
|
||||||
translations = TranslatedFields(
|
translations = TranslatedFields(
|
||||||
title=models.CharField(_('title'), max_length=255),
|
title=models.CharField(_('title'), max_length=255),
|
||||||
slug=models.SlugField(_('slug'), max_length=255, blank=True, db_index=True, allow_unicode=True),
|
slug=models.SlugField(_('slug'), max_length=255, blank=True,
|
||||||
|
db_index=True, allow_unicode=True),
|
||||||
abstract=HTMLField(_('abstract'), blank=True, default=''),
|
abstract=HTMLField(_('abstract'), blank=True, default=''),
|
||||||
meta_description=models.TextField(verbose_name=_('post meta description'),
|
meta_description=models.TextField(verbose_name=_('post meta description'),
|
||||||
blank=True, default=''),
|
blank=True, default=''),
|
||||||
|
@ -186,7 +187,8 @@ class Post(KnockerModel, ModelMeta, TranslatableModel):
|
||||||
)
|
)
|
||||||
content = PlaceholderField('post_content', related_name='post_content')
|
content = PlaceholderField('post_content', related_name='post_content')
|
||||||
liveblog = PlaceholderField('live_blog', related_name='live_blog')
|
liveblog = PlaceholderField('live_blog', related_name='live_blog')
|
||||||
enable_liveblog = models.BooleanField(verbose_name=_('enable liveblog on post'), default=False)
|
enable_liveblog = models.BooleanField(verbose_name=_('enable liveblog on post'),
|
||||||
|
default=False)
|
||||||
|
|
||||||
objects = GenericDateTaggedManager()
|
objects = GenericDateTaggedManager()
|
||||||
tags = TaggableManager(blank=True, related_name='djangocms_blog_tags')
|
tags = TaggableManager(blank=True, related_name='djangocms_blog_tags')
|
||||||
|
|
Loading…
Reference in a new issue