How to get the title from a child plugin for use in django-cms admin? -


i´d change plugin title in admin title´s of it´s children. want check plugin has children, if true show titles it´s title:

i came this:

class parentclass(cmsplugin):  def __unicode__(self):     inner_content = ""     if ... >= 1:         child in children:             inner_content += child.title     else:         inner_content = "empty"     return unicode(inner_content)  class childclass(cmsplugin): title = "x" 

is possible?

how this:

class parentclass(cmsplugin):      def __unicode__(self):         inner_content = ''          if self.child_plugin_instances not none:             child in self.child_plugin_instances:                 inner_content += child.title          inner_content = inner_content or "empty"          return unicode(inner_content) 

Comments