On Tue, Feb 3, 2009 at 11:24 PM, souper <xmlservices...@gmail.com> wrote: > > Then if I try: > all_objects = list(BurgerStand.objects.all()) + list(Place.objects.all > ()) > data = serializers.serialize('xml', all_objects) > > I get all Place objects - even the ones that are not related in any > way to BurgerStand.
Which is exactly what you asked for - Place.objects.all(). If you just want to serialize the places related to burger stands, then you will need to apply a filter to only include those places that are related to burger sands (e.g., using an __in filter on the primary key). Ticket #4656 describes an alternate approach, closer to the 'follow relationships' idea that you propose. However, that ticket doesn't contain any code that you could pickup and use. Yours, Russ Magee %-) --~--~---------~--~----~------------~-------~--~----~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---