Hi, all.

Been playing with the serializer stuff a bit.  What do people think
about the optional ability to limit which fields get serialized?
Something like:

serializers.serialize('json', foo.objects.all(), fields=('somefield',
'anotherfield'))

So that only 'somefield' and 'anotherfield' get seriailzed.  The app I
was playing with had a few fields that I didn't need and didn't really
want in publicly viewable JS.  I have a patch and can open a ticket.
Seems to work fine with my limited use and when deserializing back to
Django objects, though I've really only tried from/to JSON.

Cheers,
deryck

-- 
Deryck Hodge                            http://www.devurandom.org/
Web Developer, Naples News     http://www.naplesnews.com/
Samba Team                                     http://www.samba.org/

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

Reply via email to