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