Skip to content

Commit

Permalink
change tests to mimic structure of
Browse files Browse the repository at this point in the history
  • Loading branch information
Damien Nozay committed Apr 23, 2013
1 parent eee880b commit 98571a2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
2 changes: 2 additions & 0 deletions simple_history/tests/external/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from .model2 import ExternalModel2
from .model4 import ExternalModel4
9 changes: 9 additions & 0 deletions simple_history/tests/external/models/model2.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

from django.db import models
from simple_history.models import HistoricalRecords

class ExternalModel2(models.Model):
name = models.CharField(max_length=100)
history = HistoricalRecords()
class Meta:
app_label = 'external'
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@

from django.db import models
from simple_history.models import HistoricalRecords
from simple_history import register

class ExternalModel2(models.Model):
name = models.CharField(max_length=100)
history = HistoricalRecords()

class ExternalModel4(models.Model):
name = models.CharField(max_length=100)
class Meta:
app_label = 'external'

register(ExternalModel4, app='simple_history.tests',
manager_name='histories')

0 comments on commit 98571a2

Please sign in to comment.