#32262: squashmigrations does not unset model options when optimizing 
CreateModel
and AlterModelOptions
----------------------------------+------------------------------------
     Reporter:  InvalidInterrupt  |                    Owner:  nobody
         Type:  Bug               |                   Status:  new
    Component:  Migrations        |                  Version:  2.2
     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):

 * stage:  Unreviewed => Accepted


Comment:

 Makes sense, I guess we should take `AlterModelOptions.ALTER_OPTION_KEYS`
 in consideration here like `AlterModelOptions.state_forwards` does

 
https://github.com/django/django/blob/991dce4fc5b656e04af08a595181bd576f2bd857/django/db/migrations/operations/models.py#L675-L677

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32262#comment:2>
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/074.f67b8b0be0ab97618c632c7fc622c58f%40djangoproject.com.

Reply via email to