#32715: Duplicated CRUD permissions when renaming a model
-------------------------------------+-------------------------------------
               Reporter:  MrEscape   |          Owner:  nobody
                   Type:  Bug        |         Status:  new
              Component:             |        Version:  3.1
  Migrations                         |       Keywords:  auth_permission
               Severity:  Normal     |  rename_model
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 Hi, in a project I am developing I had to change a model class name. The
 migration process run successfully, but the CRUD permissions were
 duplicated in the User admin panel.

 **Example:**
 App name: Account
 Previous model name: ParentCompany
 New model name: ParentAccount

 **Permissions:**
 account | Parent Account | Can add parent account
 **account | Parent Account | Can add parent company** this should not be
 available.

 same behavior for change, delete, view

 I had to delete the extra 4 rows in the corresponding tables directly in
 the database and now the problem was fixed.
 Maybe this could be part of the migration process.

 Best regards and thanks to the django team!!

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32715>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/053.65fd5153facb113cfef6c4a682862b46%40djangoproject.com.

Reply via email to