~dholbach/ubucon-site/newsblog

« back to all changes in this revision

Viewing changes to ubucon_site/cms_plugins.py

  • Committer: David Planella
  • Date: 2015-11-13 18:14:39 UTC
  • Revision ID: david.planella@ubuntu.com-20151113181439-n9n6s29w1n1y9yqb
Added Raw HTML plugin, fixed typo in README

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from django.utils.translation import ugettext_lazy as _
 
2
 
 
3
from cms.plugin_pool import plugin_pool
 
4
from djangocms_text_ckeditor.cms_plugins import TextPlugin
 
5
 
 
6
from .models import RawHtml
 
7
 
 
8
class RawHtmlPlugin(TextPlugin):
 
9
    model = RawHtml
 
10
    name = _("Raw HTML")
 
11
    render_template = "developer_portal/raw.html"
 
12
    
 
13
plugin_pool.register_plugin(RawHtmlPlugin)