1
0
mirror of https://github.com/django/django.git synced 2024-12-29 12:36:08 +00:00
django/tests/app_loading/not_installed/models.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
438 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, models.CASCADE)
class M2MRelatedModel(models.Model):
class Meta:
app_label = "not_installed"
not_installed = models.ManyToManyField(NotInstalledModel)