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'
article = articles.get(slug=slug)
except:
raise Http404
- context = {}
+ context = self.get_context()
context.update(extra_context or {})
- context.update({'newsletter': self.newsletter, 'article': article})
+ context.update({'article': article})
return self.article_page.render_to_response(node, request, extra_context=context)
def issue_archive_view(self, request, node=None, extra_context=None):