﻿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
4042	Serialization doc: usage of get_serializer()	haavikko@…	Jacob	"At end of document http://www.djangoproject.com/documentation/serialization/
there is example:


{{{
json_serializer = serializers.get_serializer(""json"")
json_serializer.serialize(queryset, ensure_ascii=False, stream=response)

}}}

serializers.get_serializer() returns a class object, not actual serializer instance.
The call to json_serializer.serialize fails with:

{{{
TypeError: unbound method serialize() must be called with Serializer instance as first argument (got QuerySet instance instead)
}}}

"		closed	Documentation	dev		fixed	serialization		Ready for checkin	1	0	0	0	0	0
