Hello, I have problem with serialization of querysets. I use methos:
json = serializers.serialize('json', [Grade.objects.get(pk=pk)]) return HttpResponse(json, content_type='application/json; charset= %s' % settings.DEFAULT_CHARSET) And I get this error: 'Grade' object has no attribute 'get_absolute_url' Why do I ahve to implement get_absolute_url ?? When I use simplejson.dumps([Grade.objects.get(pk=pk)]) I get error: <Grade: 3> is not JSON serializable thanks for help --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---