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='component_of') def update_components(self): # get a list of xemes which are contained # in this one self.get_component_xemes() # Add them as many-to-many references self.components.add(*components) I've tried running the update_components method in Xeme.save (both before and after calling Model.save), using the post_save signal and using the Xeme's ModelAdmin.save_model() method, to no avail. I tried printing the contents of db.connection.queries within Xeme.save and saw the expected INSERT calls for update_components, but without the expected result appearing in the database. I also noticed that if I entered values for components myself in the admin interface, they would appear, but I couldn't see any reference to them in the SQL printed from Xeme.save(). That's how I got the idea it may be happening elsewhere. Thanks to anyone who can explain this for me - is it expected behaviour or am I doing something wrong? thanks, David --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---