Added tags to newsletter articles
authorStephen Burrows <stephen.r.burrows@gmail.com>
Tue, 7 Sep 2010 18:24:22 +0000 (14:24 -0400)
committerStephen Burrows <stephen.r.burrows@gmail.com>
Thu, 23 Sep 2010 16:31:50 +0000 (12:31 -0400)
contrib/penfield/models.py

index 3791e55..33eecb0 100644 (file)
@@ -240,6 +240,7 @@ class NewsletterArticle(Entity, Titled):
        date = models.DateTimeField(default=datetime.now)
        lede = models.TextField(null=True, blank=True)
        full_text = models.TextField()
+       tags = models.ManyToManyField(Tag, related_name='newsletterarticles', blank=True, null=True)
        
        class Meta:
                get_latest_by = 'date'