Refs #33984 -- Added test for creating copies of model instances with inherited m2m fields.

This commit is contained in:
Mariusz Felisiak 2022-11-02 12:30:16 +01:00 committed by GitHub
parent d5bcdf858d
commit 57c2e5da71
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 0 deletions

View file

@ -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(