{{{
MigrationOptimizer().optimize(
[
migrations.CreateModel("Foo", [("name",
models.CharField(max_length=255))]),
migrations.CreateModel("Bar", [("other",
models.ForeignKey("testapp.Foo", models.CASCADE))]),
migrations.DeleteModel("Foo"),
],
app_label="otherapp"
)
}}}
returns same operations, though creation and deletion of `Foo` could be
collapsed, because this model is not referenced by `Bar`.
--
Ticket URL: <https://code.djangoproject.com/ticket/26710>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* owner: nobody => sir-sigurd
* needs_better_patch: => 0
* status: new => assigned
* needs_tests: => 0
* needs_docs: => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/26710#comment:1>
* has_patch: 0 => 1
Comment:
[https://github.com/django/django/pull/6728 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/26710#comment:2>
* needs_better_patch: 0 => 1
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/26710#comment:3>
* needs_better_patch: 1 => 0
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/26710#comment:4>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"7fc4c1db627807874966e4f96b34cff7c9af886f" 7fc4c1d]:
{{{
#!CommitTicketReference repository=""
revision="7fc4c1db627807874966e4f96b34cff7c9af886f"
Fixed #26710 -- Made CreateModel.references_model() take app_label into
account.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26710#comment:5>