Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 5f08ceed57
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (15 sloc) 0.631 kB
from cms.plugin_base import CMSPluginBase
from cms.plugin_pool import plugin_pool
from cmsplugin_flickr_slideshow.models import FlickrSlideshow as FlickrSlideshowModel
from django.utils.translation import ugettext as _
class FlickrSlideshowPlugin(CMSPluginBase):
model = FlickrSlideshowModel
name = _("Flickr Slideshow")
render_template = "cmsplugin_flickr_slideshow/embed.html"
def render(self, context, instance, placeholder):
context.update({
'object': instance,
'placeholder': placeholder
})
return context
plugin_pool.register_plugin(FlickrSlideshowPlugin)
Jump to Line
Something went wrong with that request. Please try again.