def _process_names(self, names):
if names is None:<EOL><INDENT>return []<EOL><DEDENT>table_names = OrderedDict()  <EOL>while len(names):<EOL><INDENT>name = names.pop(<NUM_LIT:0>)<EOL>if hasattr(name, '<STR_LIT>'):<EOL><INDENT>if name._meta.abstract:<EOL><INDENT>raise ValueError("<STR_LIT>"<EOL>.format(name.__name__))<EOL><DEDENT>table_names[name._meta.db_table] = True<EOL>if name._meta.parents:<EOL><INDENT>names.extend(name._meta.parents.keys())<EOL><DEDENT><DEDENT>else:<EOL><INDENT>table_names[name] = True<EOL><DEDENT><DEDENT>return table_names.keys()<EOL>
Convert a list of models/table names into a list of table names. Deals
with cases of model inheritance, etc.