2011-04-21 01:58:37 +08:00
|
|
|
from django.db import models
|
|
|
|
|
|
|
|
|
|
|
|
class NotInstalledModel(models.Model):
|
|
|
|
pass
|
2011-04-27 23:46:43 +08:00
|
|
|
|
|
|
|
|
|
|
|
class RelatedModel(models.Model):
|
|
|
|
not_installed = models.ForeignKey(NotInstalledModel)
|
2011-04-28 01:51:43 +08:00
|
|
|
|
|
|
|
|
|
|
|
class M2MRelatedModel(models.Model):
|
|
|
|
not_installed = models.ManyToManyField(NotInstalledModel)
|