Re: Unable to obtain c.poll

2012-07-04 Thread Melvyn Sopacua
On 2-7-2012 23:37, Smaran Harihar wrote: > Also when we are taking, > > c = p.choice_set.filter(choice_text__startswith='Just hacking')>>> c.delete() > > > Are we deleting the object or just that filter queryset choice? The list returned by the filter. c = p.choice_set.get(..) c.delete() # cal

Re: Unable to obtain c.poll

2012-07-02 Thread Smaran Harihar
Also when we are taking, c = p.choice_set.filter(choice_text__startswith='Just hacking')>>> c.delete() Are we deleting the object or just that filter queryset choice? On Mon, Jul 2, 2012 at 1:02 PM, Daniel Roseman wrote: > On Monday, 2 July 2012 20:47:40 UTC+1, Sam007 wrote: >> >> Hi Djangoer

Re: Unable to obtain c.poll

2012-07-02 Thread Smaran Harihar
Thanks DR. Now I understand the difference between filter and get. On Mon, Jul 2, 2012 at 1:02 PM, Daniel Roseman wrote: > On Monday, 2 July 2012 20:47:40 UTC+1, Sam007 wrote: >> >> Hi Djangoers, >> >> I am almost completing my first tutorial but got stuck at the last point. >> So I am assigning

Re: Unable to obtain c.poll

2012-07-02 Thread Daniel Roseman
On Monday, 2 July 2012 20:47:40 UTC+1, Sam007 wrote: > > Hi Djangoers, > > I am almost completing my first tutorial but got stuck at the last point. > So I am assigning Choice object to 'c', > > c = p.choice_set.filter(choice_text__startswith='Just') > > And I am getting this output when I check '