@@ -789,13 +789,19 @@ def test_tracked_abstract_base(self):
789
789
class TrackedWithAbstractBase (TrackedAbstractBaseA ):
790
790
pass
791
791
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
+ )
793
796
794
797
def test_tracked_concrete_base (self ):
795
798
class TrackedWithConcreteBase (TrackedConcreteBase ):
796
799
pass
797
800
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
+ )
799
805
800
806
def test_multiple_tracked_bases (self ):
801
807
with self .assertRaises (exceptions .MultipleRegistrationsError ):
@@ -806,7 +812,10 @@ def test_tracked_abstract_and_untracked_concrete_base(self):
806
812
class TrackedWithTrackedAbstractAndUntrackedConcreteBase (TrackedAbstractBaseA , UntrackedConcreteBase ):
807
813
pass
808
814
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
+ )
810
819
811
820
def test_indirect_tracked_abstract_base (self ):
812
821
class BaseTrackedWithIndirectTrackedAbstractBase (TrackedAbstractBaseA ):
@@ -815,7 +824,12 @@ class BaseTrackedWithIndirectTrackedAbstractBase(TrackedAbstractBaseA):
815
824
class TrackedWithIndirectTrackedAbstractBase (BaseTrackedWithIndirectTrackedAbstractBase ):
816
825
pass
817
826
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
+ )
819
833
820
834
def test_indirect_tracked_concrete_base (self ):
821
835
class BaseTrackedWithIndirectTrackedConcreteBase (TrackedAbstractBaseA ):
@@ -824,7 +838,12 @@ class BaseTrackedWithIndirectTrackedConcreteBase(TrackedAbstractBaseA):
824
838
class TrackedWithIndirectTrackedConcreteBase (BaseTrackedWithIndirectTrackedConcreteBase ):
825
839
pass
826
840
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
+ )
828
847
829
848
def test_registering_with_tracked_abstract_base (self ):
830
849
class TrackedWithAbstractBaseToRegister (TrackedAbstractBaseA ):
0 commit comments