mirror of
https://github.com/django/django.git
synced 2024-12-26 19:16:11 +00:00
2706fdbc87
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16108 bcc190cf-cafb-0310-a4f2-bffc1f526a37
14 lines
273 B
Python
14 lines
273 B
Python
from django.db import models
|
|
|
|
|
|
class NotInstalledModel(models.Model):
|
|
pass
|
|
|
|
|
|
class RelatedModel(models.Model):
|
|
not_installed = models.ForeignKey(NotInstalledModel)
|
|
|
|
|
|
class M2MRelatedModel(models.Model):
|
|
not_installed = models.ManyToManyField(NotInstalledModel)
|