2011-02-12 21:03:34 +08:00
|
|
|
from django.db import models
|
|
|
|
|
2013-02-24 05:04:08 +08:00
|
|
|
|
2011-02-12 21:03:34 +08:00
|
|
|
class Mod(models.Model):
|
|
|
|
fld = models.IntegerField()
|
2011-12-10 07:16:56 +08:00
|
|
|
|
2012-11-29 18:10:31 +08:00
|
|
|
class SubMod(Mod):
|
|
|
|
cnt = models.IntegerField(unique=True)
|
2013-02-24 05:04:08 +08:00
|
|
|
|
2011-12-10 07:16:56 +08:00
|
|
|
class M2mA(models.Model):
|
|
|
|
others = models.ManyToManyField('M2mB')
|
|
|
|
|
2013-02-24 05:04:08 +08:00
|
|
|
|
2011-12-10 07:16:56 +08:00
|
|
|
class M2mB(models.Model):
|
|
|
|
fld = models.IntegerField()
|