def _map_table_name(self, model_names):
for model in model_names:<EOL><INDENT>if isinstance(model, tuple):<EOL><INDENT>model = model[<NUM_LIT:0>]<EOL><DEDENT>try:<EOL><INDENT>model_cls = getattr(self.models, model)<EOL>self.table_to_class[class_mapper(model_cls).tables[<NUM_LIT:0>].name] = model<EOL><DEDENT>except AttributeError:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>
Pre foregin_keys potrbejeme pre z nazvu tabulky zistit class,
tak si to namapujme