#13661: Code error in serialization docs
---------------------------+------------------------------------------------
 Reporter:  jabapyth       |       Owner:  nobody    
   Status:  new            |   Milestone:            
Component:  Documentation  |     Version:  SVN       
 Keywords:                 |       Stage:  Unreviewed
Has_patch:  0              |  
---------------------------+------------------------------------------------
 Under [http://docs.djangoproject.com/en/dev/topics/serialization
 /#serialization-of-natural-keys serialization of natural keys], the
 following code is given as an example:

 {{{ serializers.serialize([book1, book2], format='json', indent=2,
 use_natural_keys=True) }}}

 this throws an exception, as the non-kw arguments for serialize are
 [format, data]. This should be changed to

 {{{ serializers.serialize('json', [book1, book2], indent=2,
 use_natural_keys=True) }}}

 the attached patch does this.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/13661>
Django <http://code.djangoproject.com/>
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?hl=en.

Reply via email to