On Mar 14, 10:14 pm, MartinBorthiry <martin.borth...@gmail.com> wrote:
> Hello:
>
> I'm Trying to serialize a dict which have a list of Model's instance.
> The format that i need is json. Something like that:
>
> people = Person.objects.all()
Why don't you use Person.objects.values()?
You will get a list of dicts so there won't be any problems with
serialization.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---