Sorry, my mistake. I should refer tutorial for version 0.96.
Thanks. :)

On Jul 7, 10:45 am, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Sat, 2007-07-07 at 02:42 +0000, Olli Wang wrote:
> > Hi, I'm new to Django. I just followed the tutorial - Poll example
> > (http://www.djangoproject.com/documentation/tutorial01/) . It said
> > that adding __unicode__() to models may change object's
> > representations, but don't know why that doesn't take effect on my
> > computer. Run "Poll.objects.all()" in shell still gave me "[(Poll:
> > Poll object)]" back, but if I change __unicode__() to __str__(),
> > everything works fine(I'm not sure with really unicode char), any
> > idea? Thanks.
>
> Are you using a recent checkout of the code? The link you gave refers to
> the very latest code, so if you are using something from before, say,
> July 4, then that documentation won't apply.
>
> Regards,
> Malcolm
>
> --
> No one is listening until you make a mistake.http://www.pointy-stick.com/blog/


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

Reply via email to