1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Refs #27852 -- Fixed object deletion to show all restricted related objects rather than just the first one.

This commit is contained in:
Hasan Ramezani
2020-01-28 10:51:36 +01:00
committed by Mariusz Felisiak
parent 2a6fc89018
commit 4ca5c565f4
3 changed files with 41 additions and 22 deletions

View File

@@ -177,6 +177,10 @@ class B2(models.Model):
delete_top = models.ForeignKey(DeleteTop, models.CASCADE)
class B3(models.Model):
restrict = models.ForeignKey(R, models.RESTRICT)
class DeleteBottom(models.Model):
b1 = models.ForeignKey(B1, models.RESTRICT)
b2 = models.ForeignKey(B2, models.CASCADE)