Opened 16 years ago

Closed 11 years ago

#9421 closed Bug (fixed)

delete object with ManyToManyField (option through)

Reported by: anonymous Owned by: nobody
Component: Forms Version: 1.0
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I have a Model like this

class A(models.Model):

class B(models.Model):

m2m = models.ManyToManyField(A, through='C')

class C(models.Model):

when I delete an object of class A with admin interface it tells me that it delete objects of class C with a reference with this object of class A.

But in reality it not delete the object.

I suppose there is a bug with intermediate table and option "through" in delete operation.

Thanks.

Change History (6)

comment:1 by Jacob, 15 years ago

Triage Stage: UnreviewedAccepted

comment:2 by Luke Plant, 13 years ago

Severity: Normal
Type: Bug

comment:3 by Aymeric Augustin, 12 years ago

UI/UX: unset

Change UI/UX from NULL to False.

comment:4 by Aymeric Augustin, 12 years ago

Easy pickings: unset

Change Easy pickings from NULL to False.

comment:5 by Patryk Zawadzki, 11 years ago

Cascading deletes with ManyToManyField work fine in 1.5

comment:6 by Claude Paroz, 11 years ago

Resolution: fixed
Status: newclosed

Closing based on comment:5.

Note: See TracTickets for help on using tickets.
Back to Top