On Fri, May 8, 2009 at 8:01 AM, George Song <[email protected]> wrote:

>
> On 5/7/2009 9:23 PM, Shadow wrote:
> > If i get a model object with Model.objects.get()
> >
> > Is their a way to turn that into a dictionary?
>
> Why not just filter for it and use values()?
>
> --
> George
>
> >
>
You can do .filter(stuff).values(fields_list).get() and it will return a
dictionary.

Alex

-- 
"I disapprove of what you say, but I will defend to the death your right to
say it." --Voltaire
"The people's good is the highest law."--Cicero

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to