When finding a ManyToManyField we can directly create 2 ManyRelatedManagers, one for each side of the relation. This makes the model declaring the ManyToManyField be the one who contributes the ManyRelatedManagers.
Trying to place some related code closer to each other. This time we move some code out of the type checking phase to semantic analysis.
When finding a
ManyToManyField
we can directly create 2ManyRelatedManager
s, one for each side of the relation. This makes the model declaring theManyToManyField
be the one who contributes theManyRelatedManager
s.Trying to place some related code closer to each other. This time we move some code out of the type checking phase to semantic analysis.
Refs:
1805
2026