mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Refs #33984 -- Added test for creating copies of model instances with inherited m2m fields.
This commit is contained in:
@@ -110,6 +110,10 @@ class Supplier(Place):
|
||||
customers = models.ManyToManyField(Restaurant, related_name="provider")
|
||||
|
||||
|
||||
class CustomSupplier(Supplier):
|
||||
pass
|
||||
|
||||
|
||||
class ParkingLot(Place):
|
||||
# An explicit link to the parent (we can control the attribute name).
|
||||
parent = models.OneToOneField(
|
||||
|
||||
Reference in New Issue
Block a user