Hello Rubens,I have similar problems months ago. In my application there is a ManyToMany relation within two classes (A and B) let's name the relation as "friends". The application works fine but in unpredictable situations rows from the auxiliary table that makes the relation disappears randomly.
I read all the code, an check the "strange" situations one by one. Finally the problem was that, I use auto generated ModelForms, and in the exclude rows i didn't include the "friend" field. As you, the relation has the parameters (blank=True, null=True). The relation disappears when (existing a relation) y use this modelForm without including any info for the friends field (I don't what to edit this information at this point). At this moment, django erases the relation within A an B because wasn't explicit declared and the forms validates because it can be blank and null. The solution? Include "friend" in the exclude list of the model Form. You are using the default Admin, i was using own forms / templates, but i suppose internally, django generate forms with modelForms-like classes. Hope this help you. -- neo2001[at]gmail.com jorge[at]thecodefarm.com neo[at]art-xtreme.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---