Opened 10 years ago

Closed 6 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


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.


Change History (6)

comment:1 Changed 10 years ago by Jacob

Triage Stage: UnreviewedAccepted

comment:2 Changed 8 years ago by Luke Plant

Severity: Normal
Type: Bug

comment:3 Changed 7 years ago by Aymeric Augustin

UI/UX: unset

Change UI/UX from NULL to False.

comment:4 Changed 7 years ago by Aymeric Augustin

Easy pickings: unset

Change Easy pickings from NULL to False.

comment:5 Changed 6 years ago by Patryk Zawadzki

Cascading deletes with ManyToManyField work fine in 1.5

comment:6 Changed 6 years ago by Claude Paroz

Resolution: fixed
Status: newclosed

Closing based on comment:5.

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