Re: Polls tutorial receive object not object representation

2013-02-01 Thread Greg
> 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? It should be said that yes, that is normal. p.choice_set.all() is a list of Choice objects, not a list of strings

Re: Polls tutorial receive object not object representation

2013-02-01 Thread Ramiro Morales
On Jan 27, 2013 10:58 PM, "Sayth Renshaw" 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

Re: Polls tutorial receive object not object representation

2013-01-31 Thread Peter of the Norse
On Jan 27, 2013, at 6:53 PM, Sayth Renshaw wrote: > Hi > > Just seeking a little clarification. > > In the Polls tutorial we get this section. > > >>> p = Poll.objects.get(pk=1) > > # Display any choices from the related object set -- none so far. > >>> p.choice_set.all() > [] > > # Create

Re: Polls tutorial receive object not object representation

2013-01-28 Thread James Schneider
On Jan 27, 2013 5:58 PM, "Sayth Renshaw" wrote: > > Hi > > Just seeking a little clarification. > > In the Polls tutorial we get this section. > > >>> p = Poll.objects.get(pk=1) > > # Display any choices from the related object set -- none so far. > >>> p.choice_set.all()

Polls tutorial receive object not object representation

2013-01-27 Thread Sayth Renshaw
Hi Just seeking a little clarification. In the Polls tutorial we get this section. >>> p = Poll.objects.get(pk=1) # Display any choices from the related object set -- none so far.>>> p.choice_set.all()[] # Create three choices.>>> p.choice_set.create(choice_text='Not much', votes=0)>>>