#12845: JSON serialization of empty query set raises "cannot serialize" error.
------------------------------------+---------------------------------------
          Reporter:  orokusaki      |         Owner:  nessita
            Status:  closed         |     Milestone:  1.2    
         Component:  Serialization  |       Version:  SVN    
        Resolution:  worksforme     |      Keywords:         
             Stage:  Accepted       |     Has_patch:  0      
        Needs_docs:  0              |   Needs_tests:  0      
Needs_better_patch:  0              |  
------------------------------------+---------------------------------------
Changes (by SmileyChris):

  * status:  assigned => closed
  * resolution:  => worksforme

Comment:

 I concur:

 {{{
 In [1]: from django.core import serializers

 In [2]: from django.contrib.auth.models import *

 In [3]: Group.objects.all()
 Out[3]: []

 In [4]: serializers.serialize('json', Group.objects.all())
 Out[4]: '[]'

 In [5]: serializers.serialize('json', [])
 Out[5]: '[]'
 }}}

 If there's some other factor we're failing to consider, orokusaki, please
 comment and reopen (after testing against the latest trunk)

-- 
Ticket URL: <http://code.djangoproject.com/ticket/12845#comment:4>
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 django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to