Programmatically identify django many-to-many links
问题 I'd like to automatically generate a list of an objects many-to-many links. Let's say I have 5 Models: Model 1 has a M2M link to Model 2 Model 2 has a M2M link to Models 3 and 4 Model 4 has a M2M link to Model 5 If the user adds an object to Model 1, I want to give them the option to add another Model 1 or add Model 2 If the user adds an object to Model 2, I want to give them the option to add another Model 2, or add a Model 1, 3, or 4. If the user adds an object to Model 4, I want to give