Friday, February 1, 2013

Re: Polls tutorial receive object not object representation

On Jan 27, 2013 10:58 PM, "Sayth Renshaw" <flebber.crue@gmail.com> wrote:
>
> Now the only thing is that when I call p.choice_set.all() I don't get the representation 'The sky' or 'Just Hacking again' . I receive choice object itself. Is this normal?

That happens because you seem to hsve missed or decided to skip the instructions located right above the interactive section you are at:

The one about adding __unicode__ methods to the models and saving the models.py file.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment