Hi, > Anyone knows where the problem is?
If you are using the Admin app to populate tags then the automatic manipulators first call Receta.save() followed by setting the models M2M field. This wipes out your changes to etiquetas inside Receta.save() One solution is to add get_tags and set_tags methods to Receta and do a lazy initialization of your M2M field i.e. if get_tags finds that self.etiquetas.all() is empty, it first populates self.etiquetas. Then, for brownie points, wrap the get_tags and set_tags methods around a property so you can do straight assignments. -Rajesh --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---