mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
This reverts 4f8c7fd9d9 and adds
two regression tests:
- test_related_manager_refresh(), and
- test_create_copy_with_m2m().
Thanks joeli for the report.
This commit is contained in:
@@ -416,11 +416,6 @@ 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
|
||||
|
||||
Reference in New Issue
Block a user