PageRenderTime 8ms CodeModel.GetById 1ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/tests/modeltests/model_package/models/article.py

https://code.google.com/p/mango-py/
Python | 10 lines | 8 code | 2 blank | 0 comment | 0 complexity | 016015e97c272cb8438492a2bcaef831 MD5 | raw file
 1from django.db import models
 2from django.contrib.sites.models import Site
 3
 4class Article(models.Model):
 5    sites = models.ManyToManyField(Site)
 6    headline = models.CharField(max_length=100)
 7    publications = models.ManyToManyField("model_package.Publication", null=True, blank=True,)
 8
 9    class Meta:
10        app_label = 'model_package'