#2701: Limit which fields are serialized in serializers.serialize.
------------------------------+---------------------------------------------
 Reporter:  [EMAIL PROTECTED]  |       Owner:  adrian
     Type:  enhancement       |      Status:  new   
 Priority:  normal            |   Milestone:        
Component:  Core framework    |     Version:        
 Severity:  normal            |    Keywords:        
------------------------------+---------------------------------------------
 After playing with the serializer stuff, I wanted to be able to limit
 which fields in the model were serialized.  The app I
 was playing with had a few fields that I didn't need and didn't really
 want in publicly viewable JavaScript.  This would look something like:
 
 {{{
 serializers.serialize('json', foo.objects.all(), fields=('somefield',
 'anotherfield'))
 }}}
 
 The patch provides "fields" as an optional parameter.  Without it, the
 serializer works as normal.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/2701>
Django <http://code.djangoproject.org/>
The web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates
-~----------~----~----~----~------~----~------~--~---

Reply via email to