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:
committed by
Mariusz Felisiak
parent
82a588a6bc
commit
1754c2c802
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user