> How about something along these lines (a lazy initialization pattern):
Well, the point of saving that boolean was so I could do database queries on it (MyModel.objects.filter(has_m2m_thing=True)). That wouldn't really work with this lazy initialization pattern, unless I'm missing something. Sorry, I guess I should have mentioned that. I forget why I went that route instead of doing MyModel.objects.filter(m2m_relation__isnull=False), but I think it had something to do with .distinct() issues. I'm pretty sure I did try and reject that solution in favor of setting has_m2m_thing for a reason though. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---

