diff --git a/tests/model_inheritance/models.py b/tests/model_inheritance/models.py
index 45f22df..ef0cac1 100644
a
|
b
|
class Post(models.Model):
|
57 | 57 | @python_2_unicode_compatible |
58 | 58 | class Attachment(models.Model): |
59 | 59 | post = models.ForeignKey( |
60 | | Post, |
| 60 | 'model_inheritance.Post', |
61 | 61 | models.CASCADE, |
62 | 62 | related_name='attached_%(class)s_set', |
63 | 63 | related_query_name='attached_%(app_label)s_%(class)ss', |
diff --git a/tests/model_inheritance/tests.py b/tests/model_inheritance/tests.py
index 7362c44..f7b2272 100644
a
|
b
|
from django.test.utils import CaptureQueriesContext, isolate_apps
|
9 | 9 | from django.utils import six |
10 | 10 | |
11 | 11 | from .models import ( |
12 | | Base, Chef, CommonInfo, GrandChild, GrandParent, ItalianRestaurant, |
13 | | MixinModel, ParkingLot, Place, Post, Restaurant, Student, SubBase, |
14 | | Supplier, Title, Worker, |
| 12 | Attachment, Base, Chef, CommonInfo, GrandChild, GrandParent, |
| 13 | ItalianRestaurant, MixinModel, ParkingLot, Place, Post, Restaurant, |
| 14 | Student, SubBase, Supplier, Title, Worker, |
15 | 15 | ) |
16 | 16 | |
17 | 17 | |
18 | 18 | class ModelInheritanceTests(TestCase): |
| 19 | def test_instantiate_abstract(self): |
| 20 | Attachment() |
| 21 | |
19 | 22 | def test_abstract(self): |
20 | 23 | # The Student and Worker models both have 'name' and 'age' fields on |
21 | 24 | # them and inherit the __str__() method, just as with normal Python |