1
0
mirror of https://github.com/django/django.git synced 2025-10-26 07:06:08 +00:00

[6.0.x] Fixed #36264 -- Excluded proxy neighbors of parents from deletion collection when keep_parents=True.

Signed-off-by: saJaeHyukc <wogur981208@gmail.com>

Backport of 748551fea0 from main.
This commit is contained in:
saJaeHyukc
2025-09-02 14:16:30 +09:00
committed by Sarah Boyce
parent fd94c90526
commit e0f328d790
3 changed files with 19 additions and 2 deletions

View File

@@ -32,6 +32,11 @@ class RChild(R):
pass
class RProxy(R):
class Meta:
proxy = True
class RChildChild(RChild):
pass
@@ -179,7 +184,7 @@ class RelToBase(models.Model):
class Origin(models.Model):
pass
r_proxy = models.ForeignKey("RProxy", models.CASCADE, null=True)
class Referrer(models.Model):