Re: ManyToMany relationship being 'lost'?

2009-04-27 Thread Rubens Altimari
Hey Jorge, > 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 

Re: ManyToMany relationship being 'lost'?

2009-04-27 Thread Jorge Bastida
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.

Re: ManyToMany relationship being 'lost'?

2009-04-27 Thread Rubens Altimari
Russ, Thanks fo the reply! > The only thought I have is that you appear to be using a pre-existing > table to manage the m2m relationship, rather than the default produced > Django table. This shouldn't pose a problem, but it does lead me to > wonder if there is some other process that could be

Re: ManyToMany relationship being 'lost'?

2009-04-27 Thread Rubens Altimari
Hi Malcolm, >> class BidirectionalField(models.ManyToManyField): >>     def __init__(self, *args, **kwargs): >>         super(BidirectionalField, self).__init__(*args, **kwargs) >>         self.creates_table = False > BY the way, this has been discussed in the past and is really the wrong > way

Re: ManyToMany relationship being 'lost'?

2009-04-25 Thread Malcolm Tredinnick
On Fri, 2009-04-24 at 15:32 -0300, Rubens Altimari wrote: > Hello, > > > Sorry if this is a known issue, but I didn't find anything elsewhere. > > > I have these two models related by a many-to-many relationship. I'm > using the 'default' admin application to edit data, and in order to be >

Re: ManyToMany relationship being 'lost'?

2009-04-24 Thread Russell Keith-Magee
On Sat, Apr 25, 2009 at 2:32 AM, Rubens Altimari wrote: > Hello, > Sorry if this is a known issue, but I didn't find anything elsewhere. > I have these two models related by a many-to-many relationship. I'm using > the 'default' admin application to edit data, and in

ManyToMany relationship being 'lost'?

2009-04-24 Thread Rubens Altimari
Hello, Sorry if this is a known issue, but I didn't find anything elsewhere. I have these two models related by a many-to-many relationship. I'm using the 'default' admin application to edit data, and in order to be able to edit both sides of the relationship, I'm using the snippet provided by