Skip to content
Snippets Groups Projects
cms_plugins.py 368 B
Newer Older
Olivier Le Brouster's avatar
Olivier Le Brouster committed
# -*- coding: utf-8 -*-

from __future__ import unicode_literals

from cms.plugin_pool import plugin_pool
from newsbox_cms.cms_plugins import NewsboxPluginBase

from .models import NewsPlugin as NewsPluginModel


class NewsPlugin(NewsboxPluginBase):
Dylann Cordel's avatar
Dylann Cordel committed
    name = "News list ALL"  # Name of the plugin
Olivier Le Brouster's avatar
Olivier Le Brouster committed
    model = NewsPluginModel

Dylann Cordel's avatar
Dylann Cordel committed
plugin_pool.register_plugin(NewsPlugin)