From time to time you need to rename the model in Django (or in one recent case that I came across, split one model into two, with new / different names). Yes, proper planning helps to avoid this situation, but sometimes reality intervenes.
After renaming the corresponding tables in db and fixing the affected code, one problem remains: Any permissions granted to users or groups to work with these models still refer to the old model names. Is there any automated or semi-automated way to fix this, or is it just a matter of manual surgery db? (In development, you can reset the auth_permissions and syncdb tables to recreate it, but production is not so simple).
django django-models
shacker
source share