Code style
This commit is contained in:
parent
a316667209
commit
12e7af2a0b
2 changed files with 10 additions and 4 deletions
|
@ -4,7 +4,7 @@ from __future__ import absolute_import, print_function, unicode_literals
|
||||||
from cms.toolbar_base import CMSToolbar
|
from cms.toolbar_base import CMSToolbar
|
||||||
from cms.toolbar_pool import toolbar_pool
|
from cms.toolbar_pool import toolbar_pool
|
||||||
from django.core.urlresolvers import reverse
|
from django.core.urlresolvers import reverse
|
||||||
from django.utils.translation import ugettext_lazy as _, override
|
from django.utils.translation import override, ugettext_lazy as _
|
||||||
|
|
||||||
from .models import BLOG_CURRENT_NAMESPACE, BLOG_CURRENT_POST_IDENTIFIER
|
from .models import BLOG_CURRENT_NAMESPACE, BLOG_CURRENT_POST_IDENTIFIER
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,9 @@ class BlogCategory(TranslatableModel):
|
||||||
parent = models.ForeignKey('self', verbose_name=_('parent'), null=True, blank=True)
|
parent = models.ForeignKey('self', verbose_name=_('parent'), null=True, blank=True)
|
||||||
date_created = models.DateTimeField(_('created at'), auto_now_add=True)
|
date_created = models.DateTimeField(_('created at'), auto_now_add=True)
|
||||||
date_modified = models.DateTimeField(_('modified at'), auto_now=True)
|
date_modified = models.DateTimeField(_('modified at'), auto_now=True)
|
||||||
app_config = AppHookConfigField(BlogConfig, null=True, verbose_name=_('app. config'))
|
app_config = AppHookConfigField(
|
||||||
|
BlogConfig, null=True, verbose_name=_('app. config')
|
||||||
|
)
|
||||||
|
|
||||||
translations = TranslatedFields(
|
translations = TranslatedFields(
|
||||||
name=models.CharField(_('name'), max_length=255),
|
name=models.CharField(_('name'), max_length=255),
|
||||||
|
@ -117,7 +119,9 @@ class Post(ModelMeta, TranslatableModel):
|
||||||
help_text=_('Select sites in which to show the post. '
|
help_text=_('Select sites in which to show the post. '
|
||||||
'If none is set it will be '
|
'If none is set it will be '
|
||||||
'visible in all the configured sites.'))
|
'visible in all the configured sites.'))
|
||||||
app_config = AppHookConfigField(BlogConfig, null=True, verbose_name=_('app. config'))
|
app_config = AppHookConfigField(
|
||||||
|
BlogConfig, null=True, verbose_name=_('app. config')
|
||||||
|
)
|
||||||
|
|
||||||
translations = TranslatedFields(
|
translations = TranslatedFields(
|
||||||
title=models.CharField(_('title'), max_length=255),
|
title=models.CharField(_('title'), max_length=255),
|
||||||
|
@ -250,7 +254,9 @@ class Post(ModelMeta, TranslatableModel):
|
||||||
|
|
||||||
@python_2_unicode_compatible
|
@python_2_unicode_compatible
|
||||||
class BasePostPlugin(CMSPlugin):
|
class BasePostPlugin(CMSPlugin):
|
||||||
app_config = AppHookConfigField(BlogConfig, null=True, verbose_name=_('app. config'), blank=True)
|
app_config = AppHookConfigField(
|
||||||
|
BlogConfig, null=True, verbose_name=_('app. config'), blank=True
|
||||||
|
)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
abstract = True
|
abstract = True
|
||||||
|
|
Loading…
Add table
Reference in a new issue