My queries return XML similar 2 this
<resultset>
<record fname="Mary" lname="Jones" />
 . . .
</resultset>

I would like to return name="Jones, Mary" instead.

The template that I use to convert the list of dictionaries to xml is
used for many different "datagrid" types of queries so I don't really
want to change it. 

I suppose I could use list comprehension and change each dictionary
(row), there's not that much data in each query; but Django seems so
elegant and that seems so clunky.  Up to now, I have not had to resort
to using raw sql and would like to keep it that way as well.

I am using .values(*args) in my query, if that matters?

Is there a Djangonic way of doing this?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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.

Reply via email to