Opened 7 years ago

Closed 2 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 Changed 6 years ago by jacob

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

comment:2 Changed 4 years ago by lukeplant

  • Severity set to Normal
  • Type set to Bug

comment:3 Changed 3 years ago by aaugustin

  • UI/UX unset

Change UI/UX from NULL to False.

comment:4 Changed 3 years ago by aaugustin

  • Easy pickings unset

Change Easy pickings from NULL to False.

comment:5 Changed 2 years ago by patrys

Cascading deletes with ManyToManyField work fine in 1.5

comment:6 Changed 2 years ago by claudep

  • Resolution set to fixed
  • Status changed from new to closed

Closing based on comment:5.

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