Last modified 3 years ago
db.rename_table
db.rename_table(table_name, new_table_name)
Renames the table table_name to the new name new_table_name.
This won't affect what tables your models are looking for, of course; this is useful, for example, if you've renamed a model (and don't want to specify the old table name in Meta).
Examples
db.rename_table('core_profile', 'core_userprofile')
