13
13
14
14
from simple_history .models import HistoricalRecords
15
15
from simple_history .admin import SimpleHistoryAdmin , get_complete_version
16
- from ..models import Book , Person , Poll , State , Employee , Choice , TrackedConcreteBaseExternal
16
+ from ..models import Book , Person , Poll , State , Employee , Choice , ConcreteExternal
17
17
18
18
try :
19
19
from django .contrib .admin .utils import quote
@@ -559,13 +559,13 @@ def test_history_form_view_getting_history_abstract_external(self):
559
559
request .user = self .user
560
560
request .POST = {'_change_history' : True }
561
561
562
- obj = TrackedConcreteBaseExternal .objects .create (name = 'test' )
562
+ obj = ConcreteExternal .objects .create (name = 'test' )
563
563
obj .name = "new_test"
564
564
obj .save ()
565
565
history = obj .history .all ()[0 ]
566
566
567
567
admin_site = AdminSite ()
568
- admin = SimpleHistoryAdmin (TrackedConcreteBaseExternal , admin_site )
568
+ admin = SimpleHistoryAdmin (ConcreteExternal , admin_site )
569
569
570
570
with patch ('simple_history.admin.render' ) as mock_render :
571
571
with patch ('simple_history.admin.SIMPLE_HISTORY_EDIT' , True ):
@@ -584,9 +584,9 @@ def test_history_form_view_getting_history_abstract_external(self):
584
584
'errors' : ANY ,
585
585
'app_label' : 'tests' ,
586
586
'original_opts' : ANY ,
587
- 'changelist_url' : '/admin/tests/trackedconcretebaseexternal /' ,
587
+ 'changelist_url' : '/admin/tests/concreteexternal /' ,
588
588
'change_url' : ANY ,
589
- 'history_url' : '/admin/tests/trackedconcretebaseexternal /{pk}/history/' .format (
589
+ 'history_url' : '/admin/tests/concreteexternal /{pk}/history/' .format (
590
590
pk = obj .pk ),
591
591
'add' : False ,
592
592
'change' : True ,
0 commit comments