def widget_params(self): result = ObjectWidget.widget_params(self) if self.obj: result['value'] = dict( content=self.obj.style_content ) return result
def populate_obj(self): ObjectWidget.populate_obj(self) self.obj.style_content = self.data['content']