[Django] #27489: Renaming a model doesn't rename the permission name and codename

80 views
Skip to first unread message

Django

unread,
Nov 15, 2016, 1:31:14 PM11/15/16
to django-...@googlegroups.com
#27489: Renaming a model doesn't rename the permission name and codename
----------------------------------------+------------------------
Reporter: Tim Graham | Owner: nobody
Type: Bug | Status: new
Component: contrib.auth | Version: 1.10
Severity: Normal | Keywords:
Triage Stage: Accepted | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
----------------------------------------+------------------------
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.

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

Django

unread,
Dec 9, 2016, 5:54:48 PM12/9/16
to django-...@googlegroups.com
#27489: Renaming a model doesn't rename the permission name and codename
------------------------------+-----------------------------------------
Reporter: Tim Graham | Owner: Morgan Aubert
Type: Bug | Status: assigned
Component: contrib.auth | Version: 1.10
Severity: Normal | Resolution:

Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------------+-----------------------------------------
Changes (by Morgan Aubert):

* status: new => assigned
* owner: nobody => Morgan Aubert


--
Ticket URL: <https://code.djangoproject.com/ticket/27489#comment:1>

Django

unread,
Dec 9, 2016, 6:12:13 PM12/9/16
to django-...@googlegroups.com
#27489: Renaming a model doesn't rename the permission name and codename
------------------------------+-----------------------------------------
Reporter: Tim Graham | Owner: Morgan Aubert
Type: Bug | Status: assigned
Component: contrib.auth | Version: 1.10
Severity: Normal | Resolution:

Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------------+-----------------------------------------

Comment (by Morgan Aubert):

Added [https://github.com/django/django/pull/7673 PR]

--
Ticket URL: <https://code.djangoproject.com/ticket/27489#comment:2>

Django

unread,
Dec 9, 2016, 9:09:58 PM12/9/16
to django-...@googlegroups.com
#27489: Renaming a model doesn't rename the permission name and codename
------------------------------+-----------------------------------------
Reporter: Tim Graham | Owner: Morgan Aubert
Type: Bug | Status: assigned
Component: contrib.auth | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------------+-----------------------------------------
Changes (by Simon Charette):

* has_patch: 0 => 1
* version: 1.10 => master


--
Ticket URL: <https://code.djangoproject.com/ticket/27489#comment:3>

Django

unread,
Dec 21, 2016, 6:52:46 PM12/21/16
to django-...@googlegroups.com
#27489: Renaming a model doesn't rename the permission name and codename
------------------------------+-----------------------------------------
Reporter: Tim Graham | Owner: Morgan Aubert
Type: Bug | Status: assigned
Component: contrib.auth | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1

Easy pickings: 0 | UI/UX: 0
------------------------------+-----------------------------------------
Changes (by Tim Graham):

* needs_better_patch: 0 => 1


Comment:

I left comments for improvement on the patch.

--
Ticket URL: <https://code.djangoproject.com/ticket/27489#comment:4>

Django

unread,
Oct 16, 2020, 2:52:52 AM10/16/20
to django-...@googlegroups.com
#27489: Renaming a model doesn't rename the permission name and codename
------------------------------+------------------------------------
Reporter: Tim Graham | Owner: (none)
Type: Bug | Status: new
Component: contrib.auth | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1

Easy pickings: 0 | UI/UX: 0
------------------------------+------------------------------------
Changes (by Mariusz Felisiak):

* owner: Morgan Aubert => (none)
* status: assigned => new


--
Ticket URL: <https://code.djangoproject.com/ticket/27489#comment:5>

Django

unread,
Aug 3, 2023, 11:03:35 AM8/3/23
to django-...@googlegroups.com
#27489: Renaming a model doesn't rename the permission name and codename
------------------------------+------------------------------------
Reporter: Tim Graham | Owner: (none)
Type: Bug | Status: new
Component: contrib.auth | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1

Easy pickings: 0 | UI/UX: 0
------------------------------+------------------------------------

Comment (by Natalia Bidart):

Duplicates of this are #32715 and #34762.

--
Ticket URL: <https://code.djangoproject.com/ticket/27489#comment:6>

Django

unread,
Apr 20, 2025, 6:38:19 PM4/20/25
to django-...@googlegroups.com
#27489: Renaming a model doesn't rename the permission name and codename
------------------------------+---------------------------------------
Reporter: Tim Graham | Owner: mrartem1927
Type: Bug | Status: assigned
Component: contrib.auth | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
------------------------------+---------------------------------------
Changes (by mrartem1927):

* owner: (none) => mrartem1927
* status: new => assigned

--
Ticket URL: <https://code.djangoproject.com/ticket/27489#comment:7>

Django

unread,
Apr 21, 2025, 1:43:27 PM4/21/25
to django-...@googlegroups.com
#27489: Renaming a model doesn't rename the permission name and codename
------------------------------+---------------------------------------
Reporter: Tim Graham | Owner: mrartem1927
Type: Bug | Status: assigned
Component: contrib.auth | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
------------------------------+---------------------------------------
Comment (by mrartem1927):

PR for this [https://github.com/django/django/pull/19405]
--
Ticket URL: <https://code.djangoproject.com/ticket/27489#comment:8>

Django

unread,
May 3, 2025, 6:16:40 AM5/3/25
to django-...@googlegroups.com
#27489: Renaming a model doesn't rename the permission name and codename
------------------------------+---------------------------------------
Reporter: Tim Graham | Owner: mrartem1927
Type: Bug | Status: assigned
Component: contrib.auth | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------------+---------------------------------------
Changes (by Tim Graham):

* needs_better_patch: 1 => 0

Comment:

Don't forget to update the ticket's flags so the ticket appears in the
review queue.
--
Ticket URL: <https://code.djangoproject.com/ticket/27489#comment:9>

Django

unread,
May 14, 2025, 10:27:26 AM5/14/25
to django-...@googlegroups.com
#27489: Renaming a model doesn't rename the permission name and codename
------------------------------+---------------------------------------
Reporter: Tim Graham | Owner: mrartem1927
Type: Bug | Status: assigned
Component: contrib.auth | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 1 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------------+---------------------------------------
Changes (by Sarah Boyce):

* needs_tests: 0 => 1

--
Ticket URL: <https://code.djangoproject.com/ticket/27489#comment:10>

Django

unread,
May 26, 2025, 3:54:31 PM5/26/25
to django-...@googlegroups.com
#27489: Renaming a model doesn't rename the permission name and codename
------------------------------+---------------------------------------
Reporter: Tim Graham | Owner: mrartem1927
Type: Bug | Status: assigned
Component: contrib.auth | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------------+---------------------------------------
Changes (by mrartem1927):

* needs_tests: 1 => 0

--
Ticket URL: <https://code.djangoproject.com/ticket/27489#comment:11>

Django

unread,
Jun 13, 2025, 9:23:44 AM6/13/25
to django-...@googlegroups.com
#27489: Renaming a model doesn't rename the permission name and codename
------------------------------+---------------------------------------
Reporter: Tim Graham | Owner: mrartem1927
Type: Bug | Status: assigned
Component: contrib.auth | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
------------------------------+---------------------------------------
Changes (by Sarah Boyce):

* needs_better_patch: 0 => 1

--
Ticket URL: <https://code.djangoproject.com/ticket/27489#comment:12>

Django

unread,
Jul 15, 2025, 2:54:17 AM7/15/25
to django-...@googlegroups.com
#27489: Renaming a model doesn't rename the permission name and codename
------------------------------+---------------------------------------
Reporter: Tim Graham | Owner: mrartem1927
Type: Bug | Status: assigned
Component: contrib.auth | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------------+---------------------------------------
Changes (by mrartem1927):

* needs_better_patch: 1 => 0

--
Ticket URL: <https://code.djangoproject.com/ticket/27489#comment:13>

Django

unread,
Jul 18, 2025, 6:21:56 AM7/18/25
to django-...@googlegroups.com
#27489: Renaming a model doesn't rename the permission name and codename
------------------------------+---------------------------------------
Reporter: Tim Graham | Owner: mrartem1927
Type: Bug | Status: assigned
Component: contrib.auth | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
------------------------------+---------------------------------------
Changes (by Sarah Boyce):

* needs_better_patch: 0 => 1

--
Ticket URL: <https://code.djangoproject.com/ticket/27489#comment:14>

Django

unread,
Jul 23, 2025, 2:51:10 AM7/23/25
to django-...@googlegroups.com
#27489: Renaming a model doesn't rename the permission name and codename
------------------------------+---------------------------------------
Reporter: Tim Graham | Owner: mrartem1927
Type: Bug | Status: assigned
Component: contrib.auth | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------------+---------------------------------------
Changes (by mrartem1927):

* needs_better_patch: 1 => 0

--
Ticket URL: <https://code.djangoproject.com/ticket/27489#comment:15>

Django

unread,
Jul 30, 2025, 10:30:26 AM7/30/25
to django-...@googlegroups.com
#27489: Renaming a model doesn't rename the permission name and codename
------------------------------+---------------------------------------
Reporter: Tim Graham | Owner: mrartem1927
Type: Bug | Status: assigned
Component: contrib.auth | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
------------------------------+---------------------------------------
Changes (by Sarah Boyce):

* needs_better_patch: 0 => 1

--
Ticket URL: <https://code.djangoproject.com/ticket/27489#comment:16>

Django

unread,
Aug 1, 2025, 2:08:06 AM8/1/25
to django-...@googlegroups.com
#27489: Renaming a model doesn't rename the permission name and codename
------------------------------+---------------------------------------
Reporter: Tim Graham | Owner: mrartem1927
Type: Bug | Status: assigned
Component: contrib.auth | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------------+---------------------------------------
Changes (by mrartem1927):

* needs_better_patch: 1 => 0

--
Ticket URL: <https://code.djangoproject.com/ticket/27489#comment:17>

Django

unread,
Aug 4, 2025, 11:57:46 AM8/4/25
to django-...@googlegroups.com
#27489: Renaming a model doesn't rename the permission name and codename
------------------------------+---------------------------------------
Reporter: Tim Graham | Owner: mrartem1927
Type: Bug | Status: assigned
Component: contrib.auth | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 1 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------------+---------------------------------------
Changes (by Sarah Boyce):

* needs_tests: 0 => 1

--
Ticket URL: <https://code.djangoproject.com/ticket/27489#comment:18>

Django

unread,
Aug 15, 2025, 12:58:47 AM8/15/25
to django-...@googlegroups.com
#27489: Renaming a model doesn't rename the permission name and codename
------------------------------+---------------------------------------
Reporter: Tim Graham | Owner: mrartem1927
Type: Bug | Status: assigned
Component: contrib.auth | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------------+---------------------------------------
Changes (by mrartem1927):

* needs_tests: 1 => 0

--
Ticket URL: <https://code.djangoproject.com/ticket/27489#comment:19>

Django

unread,
Aug 15, 2025, 4:47:06 AM8/15/25
to django-...@googlegroups.com
#27489: Renaming a model doesn't rename the permission name and codename
-------------------------------------+-------------------------------------
Reporter: Tim Graham | Owner:
| mrartem1927
Type: Bug | Status: assigned
Component: contrib.auth | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce):

* stage: Accepted => Ready for checkin

--
Ticket URL: <https://code.djangoproject.com/ticket/27489#comment:20>

Django

unread,
Aug 19, 2025, 10:37:03 AM8/19/25
to django-...@googlegroups.com
#27489: Renaming a model doesn't rename the permission name and codename
-------------------------------------+-------------------------------------
Reporter: Tim Graham | Owner:
| mrartem1927
Type: Bug | Status: closed
Component: contrib.auth | Version: dev
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce <42296566+sarahboyce@…>):

* resolution: => fixed
* status: assigned => closed

Comment:

In [changeset:"f02b49d2f3bf84f5225de920ca510149f1f9f1da" f02b49d]:
{{{#!CommitTicketReference repository=""
revision="f02b49d2f3bf84f5225de920ca510149f1f9f1da"
Fixed #27489 -- Renamed permissions upon model renaming in migrations.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/27489#comment:21>

Django

unread,
Sep 15, 2025, 4:08:03 PM9/15/25
to django-...@googlegroups.com
#27489: Renaming a model doesn't rename the permission name and codename
-------------------------------------+-------------------------------------
Reporter: Tim Graham | Owner: Artyom
| Kotovskiy
Type: Bug | Status: closed
Component: contrib.auth | Version: dev
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):

In [changeset:"6e89271a8507fe272d11814975500a1b40303a04" 6e89271a]:
{{{#!CommitTicketReference repository=""
revision="6e89271a8507fe272d11814975500a1b40303a04"
Refs #27489 -- Made RenamePermission() operation respect database.

Regression in f02b49d2f3bf84f5225de920ca510149f1f9f1da.

Co-authored-by: Mariusz Felisiak <felisiak...@gmail.com>
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/27489#comment:22>

Django

unread,
Jan 5, 2026, 2:46:52 PM (10 days ago) Jan 5
to django-...@googlegroups.com
#27489: Renaming a model doesn't rename the permission name and codename
------------------------------+--------------------------------------------
Reporter: Tim Graham | Owner: Artyom Kotovskiy
Type: Bug | Status: closed
Component: contrib.auth | Version: dev
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------------+--------------------------------------------
Changes (by Natalia Bidart):

* has_patch: 1 => 0
* stage: Ready for checkin => Accepted

--
Ticket URL: <https://code.djangoproject.com/ticket/27489#comment:23>

Django

unread,
Jan 5, 2026, 2:47:00 PM (10 days ago) Jan 5
to django-...@googlegroups.com
#27489: Renaming a model doesn't rename the permission name and codename
------------------------------+--------------------------------------------
Reporter: Tim Graham | Owner: Artyom Kotovskiy
Type: Bug | Status: new
Component: contrib.auth | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------------+--------------------------------------------
Changes (by Natalia Bidart):

* resolution: fixed =>
* status: closed => new

--
Ticket URL: <https://code.djangoproject.com/ticket/27489#comment:24>

Django

unread,
Jan 5, 2026, 2:47:28 PM (10 days ago) Jan 5
to django-...@googlegroups.com
#27489: Renaming a model doesn't rename the permission name and codename
------------------------------+------------------------------------
Reporter: Tim Graham | Owner: (none)
Type: Bug | Status: assigned
Component: contrib.auth | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------------+------------------------------------
Changes (by Natalia Bidart):

* owner: Artyom Kotovskiy => (none)
* status: new => assigned

--
Ticket URL: <https://code.djangoproject.com/ticket/27489#comment:25>

Django

unread,
Jan 5, 2026, 2:52:36 PM (10 days ago) Jan 5
to django-...@googlegroups.com
#27489: Renaming a model doesn't rename the permission name and codename
------------------------------+------------------------------------
Reporter: Tim Graham | Owner: (none)
Type: Bug | Status: assigned
Component: contrib.auth | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------------+------------------------------------
Comment (by Jacob Walls):

For context on why this was reverted, see #36843 and #36793. Also see some
lower priority feedback left in inline comments in this
[https://github.com/django/django/pull/20481 draft PR].
--
Ticket URL: <https://code.djangoproject.com/ticket/27489#comment:26>

Django

unread,
Jan 5, 2026, 3:45:36 PM (10 days ago) Jan 5
to django-...@googlegroups.com
#27489: Renaming a model doesn't rename the permission name and codename
-------------------------------------+-------------------------------------
Reporter: Tim Graham | Owner: Jacob
| Walls <jacobtylerwalls@…>
Type: Bug | Status: closed
Component: contrib.auth | Version: dev
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Jacob Walls <jacobtylerwalls@…>):

* owner: (none) => Jacob Walls <jacobtylerwalls@…>
* resolution: => fixed
* status: assigned => closed

Comment:

In [changeset:"030c63d329c4814da221528e823a4aaaaa40e4f1" 030c63d3]:
{{{#!CommitTicketReference repository=""
revision="030c63d329c4814da221528e823a4aaaaa40e4f1"
Fixed #36843, #36793 -- Reverted "Fixed #27489 -- Renamed permissions upon
model renaming in migrations."

This reverts commits f02b49d2f3bf84f5225de920ca510149f1f9f1da and
6e89271a8507fe272d11814975500a1b40303a04.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/27489#comment:27>

Django

unread,
Jan 5, 2026, 3:46:05 PM (10 days ago) Jan 5
to django-...@googlegroups.com
#27489: Renaming a model doesn't rename the permission name and codename
-------------------------------------+-------------------------------------
Reporter: Tim Graham | Owner: Jacob
| Walls <jacobtylerwalls@…>
Type: Bug | Status: new
Component: contrib.auth | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Jacob Walls):

* resolution: fixed =>
* status: closed => new

--
Ticket URL: <https://code.djangoproject.com/ticket/27489#comment:28>

Django

unread,
Jan 5, 2026, 3:46:35 PM (10 days ago) Jan 5
to django-...@googlegroups.com
#27489: Renaming a model doesn't rename the permission name and codename
------------------------------+------------------------------------
Reporter: Tim Graham | Owner: (none)
Type: Bug | Status: assigned
Component: contrib.auth | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------------+------------------------------------
Changes (by Jacob Walls):

* owner: Jacob Walls <jacobtylerwalls@…> => (none)
* status: new => assigned

--
Ticket URL: <https://code.djangoproject.com/ticket/27489#comment:29>

Django

unread,
Jan 5, 2026, 3:49:15 PM (10 days ago) Jan 5
to django-...@googlegroups.com
#27489: Renaming a model doesn't rename the permission name and codename
-------------------------------------+-------------------------------------
Reporter: Tim Graham | Owner: Jacob
| Walls <jacobtylerwalls@…>
Type: Bug | Status: closed
Component: contrib.auth | Version: dev
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Jacob Walls <jacobtylerwalls@…>):

* owner: (none) => Jacob Walls <jacobtylerwalls@…>
* resolution: => fixed
* status: assigned => closed

Comment:

In [changeset:"42bab76258162e1df77d080aa69cac5d803ae90a" 42bab762]:
{{{#!CommitTicketReference repository=""
revision="42bab76258162e1df77d080aa69cac5d803ae90a"
[6.0.x] Fixed #36843, #36793 -- Reverted "Fixed #27489 -- Renamed
permissions upon model renaming in migrations."

This reverts commits f02b49d2f3bf84f5225de920ca510149f1f9f1da and
6e89271a8507fe272d11814975500a1b40303a04.

Backport of 030c63d329c4814da221528e823a4aaaaa40e4f1 from main.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/27489#comment:30>

Django

unread,
Jan 5, 2026, 3:49:43 PM (10 days ago) Jan 5
to django-...@googlegroups.com
#27489: Renaming a model doesn't rename the permission name and codename
-------------------------------------+-------------------------------------
Reporter: Tim Graham | Owner: Jacob
| Walls <jacobtylerwalls@…>
Type: Bug | Status: new
Component: contrib.auth | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Jacob Walls):

* resolution: fixed =>
* status: closed => new

--
Ticket URL: <https://code.djangoproject.com/ticket/27489#comment:31>

Django

unread,
Jan 5, 2026, 3:49:59 PM (10 days ago) Jan 5
to django-...@googlegroups.com
#27489: Renaming a model doesn't rename the permission name and codename
------------------------------+------------------------------------
Reporter: Tim Graham | Owner: (none)
Type: Bug | Status: assigned
Component: contrib.auth | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------------+------------------------------------
Changes (by Jacob Walls):

* owner: Jacob Walls <jacobtylerwalls@…> => (none)
* status: new => assigned

--
Ticket URL: <https://code.djangoproject.com/ticket/27489#comment:32>

Django

unread,
Jan 7, 2026, 11:18:04 AM (8 days ago) Jan 7
to django-...@googlegroups.com
#27489: Renaming a model doesn't rename the permission name and codename
------------------------------+------------------------------------
Reporter: Tim Graham | Owner: (none)
Type: Bug | Status: assigned
Component: contrib.auth | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------------+------------------------------------
Comment (by Jacob Walls):

Asked on forum about [https://forum.djangoproject.com/t/handling-
conflicts-when-renaming-permissions-in-concert-with-renaming-models/43865
conflict handling.]
--
Ticket URL: <https://code.djangoproject.com/ticket/27489#comment:33>

Django

unread,
Jan 14, 2026, 7:39:14 PM (11 hours ago) Jan 14
to django-...@googlegroups.com
#27489: Renaming a model doesn't rename the permission name and codename
------------------------------+--------------------------------------------
Reporter: Tim Graham | Owner: Artyom Kotovskiy
Type: Bug | Status: assigned
Component: contrib.auth | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------------+--------------------------------------------
Changes (by Artyom Kotovskiy):

* owner: (none) => Artyom Kotovskiy

--
Ticket URL: <https://code.djangoproject.com/ticket/27489#comment:34>

Django

unread,
Jan 14, 2026, 11:41:05 PM (7 hours ago) Jan 14
to django-...@googlegroups.com
#27489: Renaming a model doesn't rename the permission name and codename
------------------------------+--------------------------------------------
Reporter: Tim Graham | Owner: Artyom Kotovskiy
Type: Bug | Status: assigned
Component: contrib.auth | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------------+--------------------------------------------
Comment (by Artyom Kotovskiy):

New Pr -> [https://github.com/django/django/pull/20539]
--
Ticket URL: <https://code.djangoproject.com/ticket/27489#comment:35>

Django

unread,
1:51 AM (4 hours ago) 1:51 AM
to django-...@googlegroups.com
#27489: Renaming a model doesn't rename the permission name and codename
------------------------------+--------------------------------------------
Reporter: Tim Graham | Owner: Artyom Kotovskiy
Type: Bug | Status: assigned
Component: contrib.auth | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------------+--------------------------------------------
Changes (by Artyom Kotovskiy):

* has_patch: 0 => 1

--
Ticket URL: <https://code.djangoproject.com/ticket/27489#comment:36>
Reply all
Reply to author
Forward
0 new messages