def _init_properties(self):
super(ModelRestApi, self)._init_properties()<EOL>self.description_columns = self.description_columns or {}<EOL>self.list_exclude_columns = self.list_exclude_columns or []<EOL>self.show_exclude_columns = self.show_exclude_columns or []<EOL>self.add_exclude_columns = self.add_exclude_columns or []<EOL>self.edit_exclude_columns = self.edit_exclude_columns or []<EOL>self.order_rel_fields = self.order_rel_fields or {}<EOL>list_cols = self.datamodel.get_user_columns_list()<EOL>if not self.list_columns and self.list_model_schema:<EOL><INDENT>list(self.list_model_schema._declared_fields.keys())<EOL><DEDENT>else:<EOL><INDENT>self.list_columns = self.list_columns or [<EOL>x<EOL>for x in self.datamodel.get_user_columns_list()<EOL>if x not in self.list_exclude_columns<EOL>]<EOL><DEDENT>self._gen_labels_columns(self.list_columns)<EOL>self.order_columns = (<EOL>self.order_columns or<EOL>self.datamodel.get_order_columns_list(list_columns=self.list_columns)<EOL>)<EOL>if not self.show_columns:<EOL><INDENT>self.show_columns = [<EOL>x for x in list_cols if x not in self.show_exclude_columns<EOL>]<EOL><DEDENT>if not self.add_columns:<EOL><INDENT>self.add_columns = [<EOL>x for x in list_cols if x not in self.add_exclude_columns<EOL>]<EOL><DEDENT>if not self.edit_columns:<EOL><INDENT>self.edit_columns = [<EOL>x for x in list_cols if x not in self.edit_exclude_columns<EOL>]<EOL><DEDENT>self._filters = self.datamodel.get_filters(self.search_columns)<EOL>self.edit_query_rel_fields = self.edit_query_rel_fields or dict()<EOL>self.add_query_rel_fields = self.add_query_rel_fields or dict()<EOL>
Init Properties