Re: Using Model Object Data in views.py

2009-07-22 Thread rpupkin77
Yes, I actually had an error elsewhere apologies. I understand objects fine, BTW but am new to Django (beyond the tutorials). It was odd to me that the error was happening it seemed like i should have had access to the data.All set now. On Jul 22, 4:01 pm, Daniel Roseman wrote: > On Jul 22, 8:

Re: Using Model Object Data in views.py

2009-07-22 Thread Daniel Roseman
On Jul 22, 8:54 pm, rpupkin77 wrote: > Hi, > > this is probably a  really basic question, but i can't find the answer > anywhere. > > I need to get data from a model and use it in the view (views.py), > before I pass it to the template. However, the result I get back (when > i examine the local v

Re: Using Model Object Data in views.py

2009-07-22 Thread Javier Guerra
On Wed, Jul 22, 2009 at 7:54 PM, rpupkin77 wrote: > However, the result I get back (when > i examine the local vars) has only the value returned by the __unicode > function, in this instance, the "title" column this happens when you coerce (or 'cast') the model object into a string-like value. m

Using Model Object Data in views.py

2009-07-22 Thread rpupkin77
Hi, this is probably a really basic question, but i can't find the answer anywhere. I need to get data from a model and use it in the view (views.py), before I pass it to the template. However, the result I get back (when i examine the local vars) has only the value returned by the __unicode fu