@@ -789,13 +789,19 @@ def test_tracked_abstract_base(self):
789789 class TrackedWithAbstractBase (TrackedAbstractBaseA ):
790790 pass
791791
792- TrackedWithAbstractBase .history .all ()
792+ self .assertEqual (
793+ [f .attname for f in TrackedWithAbstractBase .history .model ._meta .fields ],
794+ ['id' , 'history_id' , 'history_date' , 'history_user_id' , 'history_type' ],
795+ )
793796
794797 def test_tracked_concrete_base (self ):
795798 class TrackedWithConcreteBase (TrackedConcreteBase ):
796799 pass
797800
798- TrackedWithConcreteBase .history .all ()
801+ self .assertEqual (
802+ [f .attname for f in TrackedWithConcreteBase .history .model ._meta .fields ],
803+ ['id' , 'trackedconcretebase_ptr_id' , 'history_id' , 'history_date' , 'history_user_id' , 'history_type' ],
804+ )
799805
800806 def test_multiple_tracked_bases (self ):
801807 with self .assertRaises (exceptions .MultipleRegistrationsError ):
@@ -806,7 +812,10 @@ def test_tracked_abstract_and_untracked_concrete_base(self):
806812 class TrackedWithTrackedAbstractAndUntrackedConcreteBase (TrackedAbstractBaseA , UntrackedConcreteBase ):
807813 pass
808814
809- TrackedWithTrackedAbstractAndUntrackedConcreteBase .history .all ()
815+ self .assertEqual (
816+ [f .attname for f in TrackedWithTrackedAbstractAndUntrackedConcreteBase .history .model ._meta .fields ],
817+ ['id' , 'untrackedconcretebase_ptr_id' , 'history_id' , 'history_date' , 'history_user_id' , 'history_type' ],
818+ )
810819
811820 def test_indirect_tracked_abstract_base (self ):
812821 class BaseTrackedWithIndirectTrackedAbstractBase (TrackedAbstractBaseA ):
@@ -815,7 +824,12 @@ class BaseTrackedWithIndirectTrackedAbstractBase(TrackedAbstractBaseA):
815824 class TrackedWithIndirectTrackedAbstractBase (BaseTrackedWithIndirectTrackedAbstractBase ):
816825 pass
817826
818- TrackedWithIndirectTrackedAbstractBase .history .all ()
827+ self .assertEqual (
828+ [f .attname for f in TrackedWithIndirectTrackedAbstractBase .history .model ._meta .fields ],
829+ [
830+ 'id' , 'basetrackedwithindirecttrackedabstractbase_ptr_id' ,
831+ 'history_id' , 'history_date' , 'history_user_id' , 'history_type' ],
832+ )
819833
820834 def test_indirect_tracked_concrete_base (self ):
821835 class BaseTrackedWithIndirectTrackedConcreteBase (TrackedAbstractBaseA ):
@@ -824,7 +838,12 @@ class BaseTrackedWithIndirectTrackedConcreteBase(TrackedAbstractBaseA):
824838 class TrackedWithIndirectTrackedConcreteBase (BaseTrackedWithIndirectTrackedConcreteBase ):
825839 pass
826840
827- TrackedWithIndirectTrackedConcreteBase .history .all ()
841+ self .assertEqual (
842+ [f .attname for f in TrackedWithIndirectTrackedConcreteBase .history .model ._meta .fields ],
843+ [
844+ 'id' , 'basetrackedwithindirecttrackedconcretebase_ptr_id' ,
845+ 'history_id' , 'history_date' , 'history_user_id' , 'history_type' ],
846+ )
828847
829848 def test_registering_with_tracked_abstract_base (self ):
830849 class TrackedWithAbstractBaseToRegister (TrackedAbstractBaseA ):
0 commit comments