﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
10954	LazyEncoder in serialization docs is incorrect	Glenn Maynard	nobody	"http://docs.djangoproject.com/en/dev/topics/serialization:

{{{
from django.utils.functional import Promise
from django.utils.encoding import force_unicode

class LazyEncoder(simplejson.JSONEncoder):
    def default(self, obj):
        if isinstance(obj, Promise):
            return force_unicode(obj)
        return obj
}}}

This causes ""object is not JSON serializable"" errors to be turned into ""ValueError: Circular reference detected"".
"		closed	Documentation	dev		fixed			Ready for checkin	1	0	0	0	0	0
