On Jun 10, 5:14 pm, "Juan Hernandez" <[EMAIL PROTECTED]> wrote: > Now, my question is: How do I treat all these values into a string without > slicing it?? I'm trying to get a value from a table and as soon as I convert > the QuerySet to a __str__() it brings everything and I have to slice it > acording to the characters.
I think you've misunderstood the purpose of 'values'. If you just want the string representation of the User, just do str(): u = User.objects.get(pk=your_pk_value) print str(u) or for the title: blogs = Blogs.objects.all() my_blog = blogs[0] print my_blog.title Hope this helps. -- Daniel. --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---