> Can you describe generally what you are trying to update in the parent
> object when its ManyToMany relationships are changed. Perhaps there's
> a way to solve your specific problem without requiring more general
> purpose solutions (like Custom Manipulators).
Sure. I'm trying to set a boolean property on the object based on the
existence (or absence) of a ManyToMany relationship. So I originally
thought something like:

def save(self):
    self.has_m2m_thing = bool(self.m2m_relation.count())
    super(MyModel, self).save()

This works fine if you save it twice, but that's not the behavior I
was looking for :).


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to