Typo :) It should be `table_name = new_class._meta.db_table`