[Django] #33572: Optimize CreateModel + AlterModelManagers to CreateModel

10 views
Skip to first unread message

Django

unread,
Mar 10, 2022, 5:30:56 PM3/10/22
to django-...@googlegroups.com
#33572: Optimize CreateModel + AlterModelManagers to CreateModel
-------------------------------------+-------------------------------------
Reporter: Adam | Owner: Adam Johnson
Johnson |
Type: | Status: assigned
Cleanup/optimization |
Component: | Version: dev
Migrations |
Severity: Normal | Keywords:
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
During migration optimization, `CreateModel` + `AlterModelOptions` is
reduced to just `CreateModel`, with the model options. Similarly,
`CreateModel` + `AlterModelManagers` can become just `CreateModel`.

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

Django

unread,
Mar 10, 2022, 5:37:12 PM3/10/22
to django-...@googlegroups.com
#33572: Optimize CreateModel + AlterModelManagers to CreateModel
-------------------------------------+-------------------------------------
Reporter: Adam Johnson | Owner: Adam
Type: | Johnson
Cleanup/optimization | Status: assigned
Component: Migrations | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 1 | Needs documentation: 0

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

* has_patch: 0 => 1


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

Django

unread,
Mar 11, 2022, 12:30:37 AM3/11/22
to django-...@googlegroups.com
#33572: Optimize CreateModel + AlterModelManagers to CreateModel
-------------------------------------+-------------------------------------
Reporter: Adam Johnson | Owner: Adam
Type: | Johnson
Cleanup/optimization | Status: assigned
Component: Migrations | 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 Mariusz Felisiak):

* stage: Unreviewed => Accepted


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

Django

unread,
Mar 11, 2022, 1:04:06 AM3/11/22
to django-...@googlegroups.com
#33572: Optimize CreateModel + AlterModelManagers to CreateModel
-------------------------------------+-------------------------------------
Reporter: Adam Johnson | Owner: Adam
Type: | Johnson
Cleanup/optimization | Status: closed
Component: Migrations | Version: dev
Severity: Normal | Resolution: fixed

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 GitHub <noreply@…>):

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


Comment:

In [changeset:"8f7cda083154a2e97e07115a66ee28be27200348" 8f7cda08]:
{{{
#!CommitTicketReference repository=""
revision="8f7cda083154a2e97e07115a66ee28be27200348"
Fixed #33572 -- Implemented CreateModel/AlterModelManagers reduction.
}}}

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

Reply all
Reply to author
Forward
0 new messages