I was wondering if anyone could help me. I currently have a Product model which has a many to many association linked back to itself for related items.
When returning the related items, I want to filter out any which are not currently flagged as active. Initially I thought about doing something like this: def _get_related_items(self): self.related_items.exclude(active=0) related_items = property(_get_related_items) However I've managed to create a recursive query. Could anyone clarify what I need to do be doing to acheive the desired filtering? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---