Skip to content

Commit 436edba

Browse files
committed
Added breaking model definition to tests
1 parent 0001c47 commit 436edba

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11
from __future__ import unicode_literals
22

3+
from django.db import models
4+
from simple_history.models import HistoricalRecords
5+
36
from .model2 import ExternalModel2
47
from .model4 import ExternalModel4
8+
9+
10+
class Poll(models.Model):
11+
"""Test model for same-named historical models
12+
13+
This model intentionally conflicts with the 'Polls' model in 'tests.models'.
14+
"""
15+
history = HistoricalRecords()
16+
17+
class Meta:
18+
app_label = 'external'

0 commit comments

Comments
 (0)