Changes between Initial Version and Version 2 of Ticket #8090


Ignore:
Timestamp:
Aug 2, 2008, 9:29:01 AM (16 years ago)
Author:
Ramiro Morales
Comment:

Reformatted description, set Version field to SVN (as per the Django Version: 1.0-alpha-SVN-8161 fragment)

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #8090

    • Property Version 1.0-alphaSVN
  • Ticket #8090 – Description

    initial v2  
    11#when i run this code:
    22
    3 
    4 
     3{{{
    54from StudentsSite.Names.models import *
    65from django.utils import simplejson
     
    98
    109serializedlist=simplejson.dumps(lstSchoolCertificateNames, encoding='utf-8');
    11 
     10}}}
    1211#this is given as error:
    13 
    14 
    15 
    16 
     12{{{
    1713Environment:
    1814
     
    5551Exception Type: TypeError at /StudentsSite/Students/Search/
    5652Exception Value: [u'icse'] is not JSON serializable
    57 
    58 
    59 
     53}}}
    6054
    6155#AND when this is done
    6256
    63 
    64 
    65 
     57{{{
    6658from StudentsSite.Names.models import *
    6759from django.core.serializers import serialize
     
    7062
    7163serializedlist=serialize('json',lstSchoolCertificateNames, encoding='utf-8')
    72 
     64}}}
    7365       
    7466#it gives this error:
    7567
    76 
     68{{{
    7769Environment:
    7870
     
    109101Exception Type: AttributeError at /StudentsSite/Students/Search/
    110102Exception Value: 'unicode' object has no attribute '_meta'
    111 
    112 
    113 
     103}}}
    114104
    115105#and i also found that values_list() function was returning an object of the type <django.db.models.query.ValuesListQuerySet >
Back to Top