Rename plugins to avoid possible name clashing with other applications
This commit is contained in:
parent
c48caa696a
commit
605c291b5a
1 changed files with 4 additions and 4 deletions
|
|
@ -14,7 +14,7 @@ class BlogPlugin(CMSPluginBase):
|
||||||
module = 'Blog'
|
module = 'Blog'
|
||||||
|
|
||||||
|
|
||||||
class LatestEntriesPlugin(BlogPlugin):
|
class BlogLatestEntriesPlugin(BlogPlugin):
|
||||||
|
|
||||||
render_template = 'djangocms_blog/plugins/latest_entries.html'
|
render_template = 'djangocms_blog/plugins/latest_entries.html'
|
||||||
name = _('Latest Blog Articles')
|
name = _('Latest Blog Articles')
|
||||||
|
|
@ -28,7 +28,7 @@ class LatestEntriesPlugin(BlogPlugin):
|
||||||
return context
|
return context
|
||||||
|
|
||||||
|
|
||||||
class AuthorPostsPlugin(BlogPlugin):
|
class BlogAuthorPostsPlugin(BlogPlugin):
|
||||||
module = _('Blog')
|
module = _('Blog')
|
||||||
name = _('Author Blog Articles')
|
name = _('Author Blog Articles')
|
||||||
model = AuthorEntriesPlugin
|
model = AuthorEntriesPlugin
|
||||||
|
|
@ -74,8 +74,8 @@ class BlogArchivePlugin(BlogPlugin):
|
||||||
return context
|
return context
|
||||||
|
|
||||||
|
|
||||||
plugin_pool.register_plugin(LatestEntriesPlugin)
|
plugin_pool.register_plugin(BlogLatestEntriesPlugin)
|
||||||
plugin_pool.register_plugin(AuthorPostsPlugin)
|
plugin_pool.register_plugin(BlogAuthorPostsPlugin)
|
||||||
plugin_pool.register_plugin(BlogTagsPlugin)
|
plugin_pool.register_plugin(BlogTagsPlugin)
|
||||||
plugin_pool.register_plugin(BlogArchivePlugin)
|
plugin_pool.register_plugin(BlogArchivePlugin)
|
||||||
plugin_pool.register_plugin(BlogCategoryPlugin)
|
plugin_pool.register_plugin(BlogCategoryPlugin)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue