Thursday, August 4, 2011

Re: Format queryset return dictionary of primary keys?

Right, that's what I'm currently doing. I was just wondering if there
was a pre-defined way.

On Aug 4, 4:06 pm, Shawn Milochik <sh...@milochik.com> wrote:
> I don't know about built-in, but you could do it in Python by iterating
> through your list and creating a dictionary with a key of the id and
> value of the rest of the dictionary.

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate