Hello,

I am going through the Django Tutorials on the Django home page. All
has gone fine, except one thing:

When building the admin page, I can't get the unicode translator to
work. It is supposed to change "Poll: Poll object" to readable text.
It just doesn't work. I am using PostgreSQL set for UTF8 encoding.
Running on Windows.

Any ideas? Thank you.

Here are the instructions that fail:

"Wait a minute. <Poll: Poll object> is, utterly, an unhelpful
representation of this object. Let's fix that by editing the polls
model (in the polls/models.py file) and adding a __unicode__() method
to both Poll and Choice:"

class Poll(models.Model):
    # ...
    def __unicode__(self):
        return self.question

class Choice(models.Model):
    # ...
    def __unicode__(self):
        return self.choice

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