#34366: Migration optimizer does not reduce multiple AlterField
--------------------------------------+------------------------------------
     Reporter:  Laurent Tramoy        |                    Owner:  nobody
         Type:  Cleanup/optimization  |                   Status:  new
    Component:  Migrations            |                  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 Simon Charette):

 * version:  4.1 => dev
 * type:  Uncategorized => Cleanup/optimization
 * stage:  Unreviewed => Accepted


Comment:

 Your analysis is correct Laurent, the reduction of multiple `AlterField`
 against the same model is simply not implemented today hence why you're
 running this behaviour.

 Given you're already half way there
 [https://docs.djangoproject.com/en/4.1/intro/contributing/#running-
 django-s-test-suite-for-the-first-time I would encourage you to submit a
 PR] that adds these changes and
 [https://github.com/django/django/blob/main/tests/migrations/test_optimizer.py
 an optimizer regression test] to cover them if you'd like to see this
 issue fixed in future versions of Django.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34366#comment:1>
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/010701868058a855-6750c2c4-d4cd-4c87-a157-e79cd04a58c7-000000%40eu-central-1.amazonses.com.

Reply via email to