[Django] #36803: Make AlterField a no-op when ManyToManyField's through.db_table remains the same between renames.

1 view
Skip to first unread message

Django

unread,
2:42 AM (12 hours ago) 2:42 AM
to django-...@googlegroups.com
#36803: Make AlterField a no-op when ManyToManyField's through.db_table remains the
same between renames.
-------------------------------------+-------------------------------------
Reporter: Clifford | Owner: Clifford Gama
Gama |
Type: | Status: assigned
Cleanup/optimization |
Component: Database | Version: 6.0
layer (models, ORM) | Keywords: AlterField, no-op,
Severity: Normal | ManyToManyField
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
[https://github.com/django/django/pull/20412#issue-3732276360 As suggested
by Simon]. Similar to f05cc5e3d2ae7663dbd248029bcb74500cf1029f (for
`db_table` on foreign keys) and #31825 for `db_column`s.
--
Ticket URL: <https://code.djangoproject.com/ticket/36803>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
9:24 AM (5 hours ago) 9:24 AM
to django-...@googlegroups.com
#36803: Make AlterField a no-op when ManyToManyField's through.db_table remains the
same between renames.
-------------------------------------+-------------------------------------
Reporter: Clifford Gama | Owner: Clifford
Type: | Gama
Cleanup/optimization | Status: assigned
Component: Migrations | Version: 6.0
Severity: Normal | Resolution:
Keywords: AlterField, no-op, | Triage Stage:
ManyToManyField | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Jacob Walls):

* component: Database layer (models, ORM) => Migrations

Comment:

Thanks. #33197 is another similar fixed ticket.
--
Ticket URL: <https://code.djangoproject.com/ticket/36803#comment:1>

Django

unread,
9:24 AM (5 hours ago) 9:24 AM
to django-...@googlegroups.com
#36803: Make AlterField a no-op when ManyToManyField's through.db_table remains the
same between renames.
-------------------------------------+-------------------------------------
Reporter: Clifford Gama | Owner: Clifford
Type: | Gama
Cleanup/optimization | Status: assigned
Component: Migrations | Version: 6.0
Severity: Normal | Resolution:
Keywords: AlterField, no-op, | Triage Stage: Accepted
ManyToManyField |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Jacob Walls):

* stage: Unreviewed => Accepted

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