django-orchestra/orchestra/apps/orders/tests/models.py

22 lines
431 B
Python
Raw Normal View History

2014-05-08 16:59:35 +00:00
from django.db import models
class Root(models.Model):
name = models.CharField(max_length=256, default='randomname')
class Related(models.Model):
root = models.ForeignKey(Root)
class TwoRelated(models.Model):
related = models.ForeignKey(Related)
class ThreeRelated(models.Model):
twolated = models.ForeignKey(TwoRelated)
class FourRelated(models.Model):
threerelated = models.ForeignKey(ThreeRelated)