Russell Keith-Magee wrote:
> On Sat, Jun 28, 2008 at 6:03 PM, M.Ganesh <[EMAIL PROTECTED]> wrote:
>   
>> <me sobbing > people who asked after me got their answers, sometimes
>> within 15 minutes..... I've not got any answers </me sobbing>
>>     
>
> Don't worry - we still love you. :-)
>
>   
>> How do I extend this to do the following:
>>
>> data = serializers.serialize('xml', SomeModel.objects.all(),
>> fields=('name','size', '__unicode__'))
>>     
>
> You can't. fields can only contain the name of fields on your model.
>
> There is an enhancement request in the ticket system (#5711) which
> would add the ability to serialize arbitrary model attributes.
> However, there hasn't been a lot of work on that ticket, and I
> wouldn't expect to see a solution for v1.0.
>
> Yours,
> Russ Magee %-)
>
>   
Thank Will & Russell,

Sorry for being impatient.

Can I use the existing serializer with a list? If yes may be I can 
construct the list by hand and then serialize. The list will have less 
than 10 entries only

Regards Ganesh



--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to