On Friday, March 16, 2012 2:50:25 PM UTC-4, Tom Evans wrote:
>
> 1) You have overridden the delete() method, and you don't call the
>
> super class method
>
Indeed, I had overridden it to create a delete column and forgot about it!
Thanks. Rainy
>
--
You received this message because you
On Fri, Mar 16, 2012 at 6:33 PM, Rainy wrote:
> Hi, I have a function that accepts a pk and deletes an object:
>
> Item.objects.filter(pk=pk).delete()
>
> If I change it to:
>
> Item.objects.get(pk=pk).delete()
>
> it no longer works, without any errors. I tried it using
Hi, I have a function that accepts a pk and deletes an object:
Item.objects.filter(pk=pk).delete()
If I change it to:
Item.objects.get(pk=pk).delete()
it no longer works, without any errors. I tried it using exactly the
same object. I looked at django docs for deletion, the only difference
3 matches
Mail list logo