Re: Model.save() vs. ManyToMany

2009-01-22 Thread David Gordon
I'll try simplifying the example further in case anyone is able to help... > Here's the problem code: class Xeme(models.Model):    text = models.CharField(max_length=150, db_index=True)    components = models.ManyToManyField(         'self', symmetrical=False, blank=True,         related_name=

Re: Model.save() vs. ManyToMany

2009-01-21 Thread David Gordon
Hi Malcom, > Please post a small example fragment demonstrating what you're trying to > do. Here's the problem code: class Xeme(models.Model): """Grapheme, phoneme, morpheme, etc - any linguistic entity representable by a string.""" text = models.CharField(max_length=15

Model.save() vs. ManyToMany

2009-01-21 Thread David Gordon
Hi Folks, I'm aware that foreign key fields such as manytomany don't update during the save() method of Model, and that there are some issues surrounding relations to 'self'. I have a model which has a couple of utility functions to update two such relations, and I've found that they don't do any