add/remove on M2M relations with intermediary model
|Reported by:||ktosiek||Owned by:||nobody|
|Component:||Database layer (models, ORM)||Version:||master|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
At the moment add and remove methods are not added to ManyRelatedManager if the intermediary model was not auto-created. I think they should be added as long as all fields (except the 2 obvious foreign keys :-)) are optional (that is, have null=True or default). Is there any way to identify such models already in Django?
This would be especially helpful when adding intermediary model to already existing m2m fields.