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
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
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
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 '
4 matches
Mail list logo