Changes between Initial Version and Version 2 of Ticket #8090
- Timestamp:
- Aug 2, 2008, 9:29:01 AM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #8090
- Property Version 1.0-alpha → SVN
-
Ticket #8090 – Description
initial v2 1 1 #when i run this code: 2 2 3 4 3 {{{ 5 4 from StudentsSite.Names.models import * 6 5 from django.utils import simplejson … … 9 8 10 9 serializedlist=simplejson.dumps(lstSchoolCertificateNames, encoding='utf-8'); 11 10 }}} 12 11 #this is given as error: 13 14 15 16 12 {{{ 17 13 Environment: 18 14 … … 55 51 Exception Type: TypeError at /StudentsSite/Students/Search/ 56 52 Exception Value: [u'icse'] is not JSON serializable 57 58 59 53 }}} 60 54 61 55 #AND when this is done 62 56 63 64 65 57 {{{ 66 58 from StudentsSite.Names.models import * 67 59 from django.core.serializers import serialize … … 70 62 71 63 serializedlist=serialize('json',lstSchoolCertificateNames, encoding='utf-8') 72 64 }}} 73 65 74 66 #it gives this error: 75 67 76 68 {{{ 77 69 Environment: 78 70 … … 109 101 Exception Type: AttributeError at /StudentsSite/Students/Search/ 110 102 Exception Value: 'unicode' object has no attribute '_meta' 111 112 113 103 }}} 114 104 115 105 #and i also found that values_list() function was returning an object of the type <django.db.models.query.ValuesListQuerySet >