On 3/31/07, Ramashish Baranwal <[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). 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---