|
22 | 22 | City, Contact, ContactRegister,
|
23 | 23 | TrackedAbstractBaseA, TrackedAbstractBaseB,
|
24 | 24 | TrackedWithAbstractBase, TrackedWithConcreteBase,
|
25 |
| - TrackedWithTrackedAbstractAndUntrackedConcreteBase, |
26 |
| - TrackedWithIndirectTrackedAbstractBase, |
27 |
| - TrackedWithIndirectTrackedConcreteBase, |
28 |
| - TrackedWithAbstractBaseToRegister, |
| 25 | + InheritTracking1, InheritTracking2, InheritTracking3, InheritTracking4, |
29 | 26 | )
|
30 | 27 | from ..external.models import ExternalModel2, ExternalModel4
|
31 | 28 |
|
@@ -808,26 +805,26 @@ class TrackedWithMultipleAbstractBases(TrackedAbstractBaseA, TrackedAbstractBase
|
808 | 805 |
|
809 | 806 | def test_tracked_abstract_and_untracked_concrete_base(self):
|
810 | 807 | self.assertEqual(
|
811 |
| - [f.attname for f in TrackedWithTrackedAbstractAndUntrackedConcreteBase.history.model._meta.fields], |
| 808 | + [f.attname for f in InheritTracking1.history.model._meta.fields], |
812 | 809 | ['id', 'untrackedconcretebase_ptr_id', 'history_id', 'history_date', 'history_user_id', 'history_type'],
|
813 | 810 | )
|
814 | 811 |
|
815 | 812 | def test_indirect_tracked_abstract_base(self):
|
816 | 813 | self.assertEqual(
|
817 |
| - [f.attname for f in TrackedWithIndirectTrackedAbstractBase.history.model._meta.fields], |
| 814 | + [f.attname for f in InheritTracking2.history.model._meta.fields], |
818 | 815 | [
|
819 |
| - 'id', 'basetrackedwithindirecttrackedabstractbase_ptr_id', |
| 816 | + 'id', 'baseinherittracking2_ptr_id', |
820 | 817 | 'history_id', 'history_date', 'history_user_id', 'history_type'],
|
821 | 818 | )
|
822 | 819 |
|
823 | 820 | def test_indirect_tracked_concrete_base(self):
|
824 | 821 | self.assertEqual(
|
825 |
| - [f.attname for f in TrackedWithIndirectTrackedConcreteBase.history.model._meta.fields], |
| 822 | + [f.attname for f in InheritTracking3.history.model._meta.fields], |
826 | 823 | [
|
827 |
| - 'id', 'basetrackedwithindirecttrackedconcretebase_ptr_id', |
| 824 | + 'id', 'baseinherittracking3_ptr_id', |
828 | 825 | 'history_id', 'history_date', 'history_user_id', 'history_type'],
|
829 | 826 | )
|
830 | 827 |
|
831 | 828 | def test_registering_with_tracked_abstract_base(self):
|
832 | 829 | with self.assertRaises(exceptions.MultipleRegistrationsError):
|
833 |
| - register(TrackedWithAbstractBaseToRegister) |
| 830 | + register(InheritTracking4) |
0 commit comments