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

Refs #34634 -- Fixed creating diamond-shaped MTI objects with ancestors inherited from different paths.

Co-authored-by: Simon Charette <charette.s@gmail.com>
This commit is contained in:
Akash Kumar Sen
2023-06-15 18:08:30 +05:30
committed by Mariusz Felisiak
parent 82a588a6bc
commit 1754c2c802
3 changed files with 38 additions and 15 deletions

View File

@@ -106,6 +106,12 @@ class ItalianRestaurant(Restaurant):
serves_gnocchi = models.BooleanField(default=False)
class ItalianRestaurantCommonParent(ItalianRestaurant, Place):
place_ptr_two = models.OneToOneField(
Place, on_delete=models.CASCADE, parent_link=True
)
class Supplier(Place):
customers = models.ManyToManyField(Restaurant, related_name="provider")