From fe42ca8692e51fa9a134cd53c79701fc3f9c1984 Mon Sep 17 00:00:00 2001 From: Sanj Date: Mon, 5 Dec 2011 19:04:24 +0530 Subject: [PATCH] Emailer fields: DB Changed --- itf/emailer/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/itf/emailer/models.py b/itf/emailer/models.py index aee0696..4c3b024 100644 --- a/itf/emailer/models.py +++ b/itf/emailer/models.py @@ -32,6 +32,7 @@ class ArticleImage(models.Model): image = models.ImageField(upload_to='upload/images/emailer/') caption = models.CharField(max_length=512, blank=True) article = models.ForeignKey(EmailerArticle) + short_name = models.CharField(max_length=64, blank=True, help_text='Short name to insert images into article') def __unicode__(self): return self.caption @@ -39,6 +40,7 @@ class ArticleImage(models.Model): class Weblink(models.Model): url = models.URLField() + title = models.CharField(max_length=512) text = models.TextField(blank=True) issue = models.ForeignKey(EmailerIssue)