Emailer fields: DB Changed

This commit is contained in:
Sanj 2011-12-05 19:04:24 +05:30
parent 1326d1eae4
commit fe42ca8692

View File

@ -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)