diff --git a/tests/app_loading/not_installed/models.py b/tests/app_loading/not_installed/models.py index 1e4b59894c..09cf2ac6ed 100644 --- a/tests/app_loading/not_installed/models.py +++ b/tests/app_loading/not_installed/models.py @@ -2,12 +2,22 @@ from django.db import models class NotInstalledModel(models.Model): - pass + + class Meta: + app_label = 'not_installed' class RelatedModel(models.Model): + + class Meta: + app_label = 'not_installed' + not_installed = models.ForeignKey(NotInstalledModel) class M2MRelatedModel(models.Model): + + class Meta: + app_label = 'not_installed' + not_installed = models.ManyToManyField(NotInstalledModel)