How to rename a DjangoCMS's plugin?

65 Views Asked by At

I can't find information on how to change a DjangoCMS's plugin name.

I've already renamed the model behind the plugin. But now I want to change the plugin name to something else. But since it is used many times in current data, I seek for a reliable way to do it. Particularly which queries are required to perform in database during in migrations.

For now I've only found that changing plugin_type in CMSPlugin objects seems to work. But I wonder if there is other locations to perform a change.

CMSPlugin.objects.filter(plugin_type='OldMyPlugin').update(plugin_type='NewMyPlugin')

Thanks

0

There are 0 best solutions below