-
-
Notifications
You must be signed in to change notification settings - Fork 472
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Damien Nozay
committed
Apr 23, 2013
1 parent
eee880b
commit 98571a2
Showing
3 changed files
with
13 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
from .model2 import ExternalModel2 | ||
from .model4 import ExternalModel4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
7 changes: 2 additions & 5 deletions
7
simple_history/tests/external/models.py → ...e_history/tests/external/models/model4.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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') |