django/tests/app_loading/not_installed/models.py

24 lines
425 B
Python
Raw Normal View History

from django.db import models
class NotInstalledModel(models.Model):
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)