diff options
| author | Keryn Knight <keryn@kerynknight.com> | 2021-08-01 12:13:35 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-11-08 08:44:12 +0100 |
| commit | 4f8c7fd9d91b35e2c2922de4bb50c8c8066cbbc6 (patch) | |
| tree | 8852a9111b57708f644f9a792e1cd06597cdb61a /tests/model_inheritance_regress | |
| parent | ba9ced3e9a643a05bc521f0a2e6d02e3569de374 (diff) | |
Fixed #32980 -- Made models cache related managers.
Diffstat (limited to 'tests/model_inheritance_regress')
| -rw-r--r-- | tests/model_inheritance_regress/tests.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/model_inheritance_regress/tests.py b/tests/model_inheritance_regress/tests.py index 2c15925da5..ff1531b3f0 100644 --- a/tests/model_inheritance_regress/tests.py +++ b/tests/model_inheritance_regress/tests.py @@ -354,6 +354,11 @@ class ModelInheritanceTest(TestCase): parties = list(p4.bachelorparty_set.all()) self.assertEqual(parties, [bachelor, messy_parent]) + def test_abstract_base_class_m2m_relation_inheritance_manager_reused(self): + p1 = Person.objects.create(name='Alice') + self.assertIs(p1.birthdayparty_set, p1.birthdayparty_set) + self.assertIs(p1.bachelorparty_set, p1.bachelorparty_set) + def test_abstract_verbose_name_plural_inheritance(self): """ verbose_name_plural correctly inherited from ABC if inheritance chain |
