File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ class Meta:
12
12
app_label = 'external'
13
13
14
14
15
- class TrackedAbstractBaseExternal (models .Model ):
15
+ class AbstractExternal (models .Model ):
16
16
history = HistoricalRecords (inherit = True )
17
17
18
18
class Meta :
Original file line number Diff line number Diff line change 6
6
from simple_history import register
7
7
8
8
from .custom_user .models import CustomUser as User
9
- from .external .models .model2 import TrackedAbstractBaseExternal
9
+ from .external .models .model2 import AbstractExternal
10
+
10
11
11
12
class Poll (models .Model ):
12
13
question = models .CharField (max_length = 200 )
@@ -341,7 +342,7 @@ class UntrackedConcreteBase(models.Model):
341
342
pass
342
343
343
344
344
- class TrackedConcreteBaseExternal (TrackedAbstractBaseExternal ):
345
+ class TrackedConcreteBaseExternal (AbstractExternal ):
345
346
name = models .CharField (max_length = 50 )
346
347
347
348
class Meta :
Original file line number Diff line number Diff line change @@ -572,7 +572,7 @@ def test_history_form_view_getting_history_abstract_external(self):
572
572
admin .history_form_view (request , obj .id , history .pk )
573
573
574
574
context = {
575
- # Verify this is set for history object not poll object
575
+ # Verify this is set for history object
576
576
'original' : history .instance ,
577
577
'change_history' : True ,
578
578
You can’t perform that action at this time.
0 commit comments