Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (18 sloc) 0.636 kb
from django.contrib import admin
from cms.plugin_pool import plugin_pool
from cms.plugin_base import CMSPluginBase
from django.utils.translation import ugettext_lazy as _
from example.store.models import Store, StoreItem
from django.contrib import admin
class StoreItemInlineAdmin(admin.TabularInline):
model = StoreItem
class StorePlugin(CMSPluginBase):
model = Store
name = _("Store")
inlines = [
StoreItemInlineAdmin,
]
render_template = "store/plugins/store.html"
def render(self, context, instance, placeholder):
return {}
plugin_pool.register_plugin(StorePlugin)
Jump to Line
Something went wrong with that request. Please try again.