pep8 corrections
This commit is contained in:
parent
2fa7ebb3b1
commit
a224fcca2e
1 changed files with 2 additions and 2 deletions
|
@ -86,7 +86,7 @@ class BlogTagsPlugin(BlogPlugin):
|
||||||
name = get_setting('TAGS_PLUGIN_NAME')
|
name = get_setting('TAGS_PLUGIN_NAME')
|
||||||
model = GenericBlogPlugin
|
model = GenericBlogPlugin
|
||||||
base_render_template = 'tags.html'
|
base_render_template = 'tags.html'
|
||||||
exclude = ['template_folder'] if len(get_setting('PLUGIN_TEMPLATE_FOLDERS'))>=1 else []
|
exclude = ['template_folder'] if len(get_setting('PLUGIN_TEMPLATE_FOLDERS')) >= 1 else []
|
||||||
|
|
||||||
def render(self, context, instance, placeholder):
|
def render(self, context, instance, placeholder):
|
||||||
context = super(BlogTagsPlugin, self).render(context, instance, placeholder)
|
context = super(BlogTagsPlugin, self).render(context, instance, placeholder)
|
||||||
|
@ -100,7 +100,7 @@ class BlogCategoryPlugin(BlogPlugin):
|
||||||
name = get_setting('CATEGORY_PLUGIN_NAME')
|
name = get_setting('CATEGORY_PLUGIN_NAME')
|
||||||
model = GenericBlogPlugin
|
model = GenericBlogPlugin
|
||||||
base_render_template = 'categories.html'
|
base_render_template = 'categories.html'
|
||||||
exclude = ['template_folder'] if len(get_setting('PLUGIN_TEMPLATE_FOLDERS'))>=1 else []
|
exclude = ['template_folder'] if len(get_setting('PLUGIN_TEMPLATE_FOLDERS')) >= 1 else []
|
||||||
|
|
||||||
def render(self, context, instance, placeholder):
|
def render(self, context, instance, placeholder):
|
||||||
context = super(BlogCategoryPlugin, self).render(context, instance, placeholder)
|
context = super(BlogCategoryPlugin, self).render(context, instance, placeholder)
|
||||||
|
|
Loading…
Add table
Reference in a new issue