Emailer fields: DB Changed
This commit is contained in:
parent
1326d1eae4
commit
fe42ca8692
|
@ -32,6 +32,7 @@ class ArticleImage(models.Model):
|
||||||
image = models.ImageField(upload_to='upload/images/emailer/')
|
image = models.ImageField(upload_to='upload/images/emailer/')
|
||||||
caption = models.CharField(max_length=512, blank=True)
|
caption = models.CharField(max_length=512, blank=True)
|
||||||
article = models.ForeignKey(EmailerArticle)
|
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):
|
def __unicode__(self):
|
||||||
return self.caption
|
return self.caption
|
||||||
|
@ -39,6 +40,7 @@ class ArticleImage(models.Model):
|
||||||
|
|
||||||
class Weblink(models.Model):
|
class Weblink(models.Model):
|
||||||
url = models.URLField()
|
url = models.URLField()
|
||||||
|
title = models.CharField(max_length=512)
|
||||||
text = models.TextField(blank=True)
|
text = models.TextField(blank=True)
|
||||||
issue = models.ForeignKey(EmailerIssue)
|
issue = models.ForeignKey(EmailerIssue)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user