docstrings for out example plugin
@@ -10,11 +10,18 @@ from cmsplugin_cascade.plugin_base import CascadePluginBase
class Badge(CascadePluginBase):
+ """
+ This is a simple example of a plugin suitable for the djangocms-cascade system.
+ It contains one single field: `content` rendered via the template `bs3demo/badge.html`.
+ """
name = _("Badge")
require_parent = False
allow_children = False
render_template = 'bs3demo/badge.html'
- content = GlossaryField(widgets.TextInput(), label=_("Content"))
+ content = GlossaryField(
+ widgets.TextInput(),
+ label=_("Content"),
+ )
plugin_pool.register_plugin(Badge)
