2011-10-14 02:04:12 +08:00
|
|
|
from django.db import models
|
|
|
|
|
2009-11-05 19:57:28 +08:00
|
|
|
|
2014-12-24 01:09:55 +08:00
|
|
|
class Site(models.Model):
|
|
|
|
name = models.CharField(max_length=100)
|
|
|
|
|
|
|
|
|
2009-11-05 19:57:28 +08:00
|
|
|
class Article(models.Model):
|
|
|
|
sites = models.ManyToManyField(Site)
|
|
|
|
headline = models.CharField(max_length=100)
|
2014-07-09 04:42:40 +08:00
|
|
|
publications = models.ManyToManyField("model_package.Publication", blank=True)
|