#27768: makemigrations uses unnecessary AddField for ForeignKey depending on model name -------------------------------------+------------------------------------- Reporter: Ed Morley | Owner: Ed Morley Type: | Status: assigned Cleanup/optimization | Component: Migrations | Version: master Severity: Normal | Resolution: Keywords: | Triage Stage: Accepted Has patch: 1 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 1 Easy pickings: 0 | UI/UX: 0 -------------------------------------+-------------------------------------
Comment (by Tim Graham <timograham@…>): In [changeset:"d3a935f01f6cb36d21b09d81c5f022a3a5116ab0" d3a935f0]: {{{ #!CommitTicketReference repository="" revision="d3a935f01f6cb36d21b09d81c5f022a3a5116ab0" Refs #27768 -- Reversed order of optimized and in-between operations. Operations can only be optimized through if they don't reference any of the state the operation they are compared against defines or alters, so it's safe to reverse the order. }}} -- Ticket URL: <https://code.djangoproject.com/ticket/27768#comment:8> 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 django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/066.d387b1e70be9ff02d7a8b9d4d04d12d2%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.