﻿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
11244	serialization only works for iterable objects	Andrea Zilio	nobody	"This works:

{{{
from django.core import serializers
data = serializers.serialize(""json"", SomeModel.objects.all())
}}}


This doesn't and throws ''TypeError:'SomeModel' object is not iterable'':
{{{
from django.core import serializers
data = serializers.serialize(""json"", SomeModel.objects.get(pk=1))
}}}

I think that should be possible to serialize single objects too.

(Es: I often need to serialize a object, or better... some fields of a single object when implementing  ajax views)"		closed	Core (Serialization)	1.0		wontfix			Design decision needed	0	0	0	0	0	0
