Debian Codegraph @

tests/app_loading/not_installed/models.py

raw
1 from django.db import models
2
3
4 class NotInstalledModel(models.Model):
5 class Meta:
6 app_label = "not_installed"
7
8
9 class RelatedModel(models.Model):
10 class Meta:
11 app_label = "not_installed"
12
13 not_installed = models.ForeignKey(NotInstalledModel, models.CASCADE)
14
15
16 class M2MRelatedModel(models.Model):
17 class Meta:
18 app_label = "not_installed"
19
20 not_installed = models.ManyToManyField(NotInstalledModel)