Hi. I have been trying to get django to return my models as xml. I have tried using the xml serializer but i cannot get it to send back anything but the initial model.
I would like to get nested xml like below (where Department has a ForeignKey to Organization). <Organization> <name>My Org</name> <Department> Department 1 </Department> <Department> Department 2 </Department> <Department> Department 3 </Department> </Organzation> I have tried a number of methods, including: u = Organization.objects.select_related().get(pk=1) d = u.department_set.all() data = serializers.serialize("xml", d) This only gives all departments Thanks for any help. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---