Paul,

Thanks for the help.  I switched to the get method, and the data
prints correctly now.  Thanks!

-Mike

On Dec 22, 5:44 pm, "Wayper, Paul" <paul.way...@transact.com.au>
wrote:
> > .filter returns a list of the items that match the query.  So
> > you're trying to stringify a list.  That's where the '[' and
> > ']' are coming from.
>
> I should have mentioned that the get method (e.g. Post.objects.get(id =
> 1)) will return a single object, or raise a DoesNotExist error.  You may
> want to look into the 'get_object_or_404' helper.
>
> Have fun,
>
> --
> Paul Wayper
> SYSTEMS ENGINEER
> TransACT
>
> Telephone: 02 6229 8026
> Mobile: 0422 392 081
>
> PO Box 1006, Civic Square  ACT  2608
>
> www.transact.com.au

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to