Re: dictionary from object

2008-08-27 Thread Jarek Zgoda
Wiadomość napisana w dniu 2008-08-27, o godz. 07:25, przez Vance Dubberly: > So I want to do something I'd think would be extremely common and > simple. > > user = User.objects.get(pk=data['id']) > > I want a dictionary of the model attributes/values from user. > > user_dict = { 'first_name'

Re: dictionary from object

2008-08-26 Thread Rishabh Manocha
On Wed, Aug 27, 2008 at 10:55 AM, Vance Dubberly <[EMAIL PROTECTED]>wrote: > > So I want to do something I'd think would be extremely common and simple. > > user = User.objects.get(pk=data['id']) > > I want a dictionary of the model attributes/values from user. > > user_dict = { 'first_name' : 'fo

dictionary from object

2008-08-26 Thread Vance Dubberly
So I want to do something I'd think would be extremely common and simple. user = User.objects.get(pk=data['id']) I want a dictionary of the model attributes/values from user. user_dict = { 'first_name' : 'foo', .. Am I asking to much or reading to little? -- To pretend, I actually do th