On Mar 31, 9:13 pm, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On 3/31/07,RamashishBaranwal <[EMAIL PROTECTED]> wrote: > > > I am trying to export a model's data to XML. To do this I'm using the > > model class's _meta.fields. However it doesn't list ManyToManyField > > objects. How can I get those? > > Are you aware of the XML serializer? Django already has a module for > converting the data of a model into XML (JSON and YAML are also > supported). > > http://www.djangoproject.com/documentation/serialization/ > > Even if the Django serializer doesn't meet your needs, the > implementation does serve as an example of how to do generic model > traversal (i.e., how to find all the fields of a model, and the values > of those field, in a generic way). >
Thanks Russ for pointing that out. I'll have a look at that, may be that can save some of my time. -Ram --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---