#22875: "ValueError: Lookup failed for model referenced by field app.Model.m2mfield: app.ThroghModel" in simple-self contained M2M setup ---------------------------------+-------------------------------------- Reporter: Ramiro Morales | Owner: nobody Type: Bug | Status: closed Component: Migrations | Version: 1.7-beta-2 Severity: Release blocker | Resolution: fixed Keywords: | Triage Stage: Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 ---------------------------------+--------------------------------------
Comment (by Tim Graham <timograham@…>): In [changeset:"e4c0878b30cf1fc29212185c55614fc463393af1" e4c0878b]: {{{ #!CommitTicketReference repository="" revision="e4c0878b30cf1fc29212185c55614fc463393af1" Refs #22875 -- Fixed an optimizer test to use a valid scenario. An explicit intermediary many-to-many relationship must declare forward and reverse foreign keys. The original issue was in the autodetector as these operations shouldn't have been generated in this order in the first place which is tested by AutodetectorTests.test_create_with_through_model. }}} -- Ticket URL: <https://code.djangoproject.com/ticket/22875#comment:4> 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/064.566955c351993c6df0dc5166c40bea39%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.