~ubuntu-branches/ubuntu/quantal/python-django/quantal-security

« back to all changes in this revision

Viewing changes to tests/modeltests/model_package/models/article.py

  • Committer: Bazaar Package Importer
  • Author(s): Chris Lamb
  • Date: 2010-05-21 07:52:55 UTC
  • mfrom: (1.3.6 upstream)
  • mto: This revision was merged to the branch mainline in revision 28.
  • Revision ID: james.westby@ubuntu.com-20100521075255-ii78v1dyfmyu3uzx
Tags: upstream-1.2
ImportĀ upstreamĀ versionĀ 1.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from django.db import models
 
2
from django.contrib.sites.models import Site
 
3
 
 
4
class 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'