#23624: Regression in ManyToManyField with through, runtime-generated models -------------------------------------+------------------------------------- Reporter: ludoo | Owner: nobody Type: Bug | Status: new Component: Database layer | Version: 1.7 (models, ORM) | Resolution: Severity: Normal | Triage Stage: Keywords: | Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+-------------------------------------
Comment (by ludoo): Progress. I have found out that the exception disappears if the m2m field name is the same as the fk field name in the through object: the keys in the _name_map of the model holding the m2m field are populated using the through model's field names. If the m2m field is named differently, the field is missing from the name map and is not found at query time. -- Ticket URL: <https://code.djangoproject.com/ticket/23624#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/063.980d24c0ed4ce932589cfd05fa3440a7%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.