Re: Django's cascade delete is executing the DELETE SQL twice

2013-05-24 Thread Michael
Sure okay, I'll whittle my project down to the bare bones, investigate it further, and if I manage to get a simple project that reproduces it I'll let you know. Cheers! Oh, and it's Django 1.5.1 I'm running. On Friday, 24 May 2013 11:14:03 UTC+1, akaariai wrote: > > On 22 touko, 18:57,

Re: Django's cascade delete is executing the DELETE SQL twice

2013-05-24 Thread akaariai
On 22 touko, 18:57, Michael wrote: > I've got an odd situation here, any idea why the delete SQL for the > `myapp_entry_tag` table is being performed twice? > > >>> from myapp.models import Tag > >>> from django.db import connection > >>> from pprint import pprint > >>>

Django's cascade delete is executing the DELETE SQL twice

2013-05-22 Thread Michael
I've got an odd situation here, any idea why the delete SQL for the `myapp_entry_tag` table is being performed twice? >>> from myapp.models import Tag >>> from django.db import connection >>> from pprint import pprint >>> Tag.objects.only('pk').get(pk=1).delete() >>> pprint(connection.queries)