2011-04-21 01:58:37 +08:00
|
|
|
from django.db import models
|
|
|
|
|
|
|
|
|
|
|
|
class NotInstalledModel(models.Model):
|
2014-01-05 17:13:10 +08:00
|
|
|
class Meta:
|
|
|
|
app_label = "not_installed"
|
2011-04-27 23:46:43 +08:00
|
|
|
|
|
|
|
|
|
|
|
class RelatedModel(models.Model):
|
2014-01-05 17:13:10 +08:00
|
|
|
class Meta:
|
|
|
|
app_label = "not_installed"
|
|
|
|
|
2015-07-22 22:43:21 +08:00
|
|
|
not_installed = models.ForeignKey(NotInstalledModel, models.CASCADE)
|
2011-04-28 01:51:43 +08:00
|
|
|
|
|
|
|
|
|
|
|
class M2MRelatedModel(models.Model):
|
2014-01-05 17:13:10 +08:00
|
|
|
class Meta:
|
|
|
|
app_label = "not_installed"
|
|
|
|
|
2011-04-28 01:51:43 +08:00
|
|
|
not_installed = models.ManyToManyField(NotInstalledModel)
|