Renaming a model doesn't rename the permission name and codename
After a RenameModel
operation, new permissions are created with the name and codename of the new model name rather than renaming the permissions with the old model name. It should be feasible to fix by using an approach similar to f179113e6cbc8ba0a8d4e87e1d4410fb61d63e75 where a RenamePermission
operation is injected in the plan after each RenameModel
operation.
#26756 requires the same approach except that the RenamePermission
operation must be inserted after AlterModelOptions
operations with a verbose_name
key.
Change History
(12)
Owner: |
changed from nobody to Morgan Aubert
|
Status: |
new → assigned
|
Has patch: |
set
|
Version: |
1.10 → master
|
Patch needs improvement: |
set
|
Owner: |
Morgan Aubert removed
|
Status: |
assigned → new
|
Owner: |
set to mrartem1927
|
Status: |
new → assigned
|
Patch needs improvement: |
unset
|
Patch needs improvement: |
set
|
Added PR