Changes between Initial Version and Version 1 of Ticket #23624, comment 4
- Timestamp:
- Oct 10, 2014, 3:45:39 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #23624, comment 4
initial v1 1 1 Progress. 2 2 3 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.3 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 model's field names, but when looked up at query time they use the through model's fk field name.