# # -*- coding: utf-8 -*- from cms.plugin_base import CMSPluginBase from cms.plugin_pool import plugin_pool from django.utils.translation import ugettext as _ # from .models import Promo from django.db.models import Q class TrademarkSearchPluginPublisher(CMSPluginBase): # model = PollPluginModel # model where plugin data are saved module = _("Trademark") name = _("Search Form Plugin") # name of the plugin in the interface render_template = "trademark/form.html" def render(self, context, instance, placeholder): return context plugin_pool.register_plugin(TrademarkSearchPluginPublisher) # register the plugin