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