Quantcast
Channel: Django m2m and saving objects - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by istruble for Django m2m and saving objects

Yes, the deletion of any existing rows in appname_obj1_obj2 is expected behavior when saving a form for an object that has a ManyToManyField.You can see the clear() before the add(**values) in...

View Article



Django m2m and saving objects

I have a couple of simple objects that have a many-to-many relationship. Django has joined them using obj1_obj2 table and it looks like this in mysql; id | person_id | nationality_id...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images