Thursday, May 26, 2011

Is a model method the answer?

I have a model class (A) that has a M2M field with its relationship
to another model (B). When I save an instance of model class (A) I
want to automatically update a BooleanField in all the many, related
model(B) instances at the same time. Is the right way to do this
through a Model Method? If so, how should I reference across the M2M
relationship? Any advice appreciated as I can't seem to find an answer
to this specific problem.

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment