Inherits django.contrib.admin.options.ModelAdmin.
Defaults to True, if False no preview is done in the admin.
Custom template to use to render the form to edit this plugin.
Custom form class to be used to edit this plugin.
Is the CMSPlugin model we created earlier. If you don’t need a model because you just want to display some template logic, use CMSPlugin from cms.models as the model instead.
Will be group the plugin in the plugin editor. If module is None, plugin is grouped “Generic” group.
Will be displayed in the plugin editor.
If set to False, this plugin will not be rendered at all.
Will be rendered with the context returned by the render function.
Whether this plugin can be used in text plugins or not.
Returns the alt text for the icon used in text plugins, see icon_src().
Returns the url to the icon to be used for the given instance when that instance is used inside a text plugin.
This method returns the context to be used to render the template specified in render_template.
Parameters: |
|
---|---|
Return type: | dict |