On Mar 20, 1:56 pm, Ed57 <eddie_rand...@hotmail.co.uk> wrote:
> Hi
>
> I'm just trying to learn about django (I'm also new to python). In the
> tutorial there's a bit where you put the def __unicode__(self): method
> in your classes. I've done this but when I  do Poll.objects.all()  -
> the class is called Poll - i just get  <Poll: Poll object>. The
> tutorial says this might happen if I'm using an old version of django,
> but I'm using 1.1.1 and the tutorial is for 1.1.1 so I don't know
> whats wrong.
>
> Any ideas?

You haven't shown us your code, but my guess would be one of two
issues - either the server hasn't restarted itself, in which case hit
ctrl-c and do it manually; or it's an indentation issue, so that the
method is being parsed as a standalone function rather than a member
of the Poll class.
--
DR.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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