Skip to content

Commit 231f625

Browse files
author
Ross Mechanic
committed
Fixed issue with verbose_name length with django <1.8
1 parent 53b7e10 commit 231f625

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

simple_history/tests/external/models/model2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class Meta:
1212
app_label = 'external'
1313

1414

15-
class TrackedAbstractBaseExternal(models.Model):
15+
class AbstractExternal(models.Model):
1616
history = HistoricalRecords(inherit=True)
1717

1818
class Meta:

simple_history/tests/models.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
from simple_history import register
77

88
from .custom_user.models import CustomUser as User
9-
from .external.models.model2 import TrackedAbstractBaseExternal
9+
from .external.models.model2 import AbstractExternal
10+
1011

1112
class Poll(models.Model):
1213
question = models.CharField(max_length=200)
@@ -341,7 +342,7 @@ class UntrackedConcreteBase(models.Model):
341342
pass
342343

343344

344-
class TrackedConcreteBaseExternal(TrackedAbstractBaseExternal):
345+
class TrackedConcreteBaseExternal(AbstractExternal):
345346
name = models.CharField(max_length=50)
346347

347348
class Meta:

simple_history/tests/tests/test_admin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ def test_history_form_view_getting_history_abstract_external(self):
572572
admin.history_form_view(request, obj.id, history.pk)
573573

574574
context = {
575-
# Verify this is set for history object not poll object
575+
# Verify this is set for history object
576576
'original': history.instance,
577577
'change_history': True,
578578

0 commit comments

Comments
 (0)