full_text = models.TextField()
class Meta:
+ get_latest_by = 'date'
ordering = ['-date']
unique_together = (('newsletter', 'slug'),)
class NewsletterIssue(Entity, Titled):
newsletter = models.ForeignKey(Newsletter, related_name='issues')
number = models.PositiveIntegerField()
- articles = models.ManyToManyField(NewsletterArticle)
+ articles = models.ManyToManyField(NewsletterArticle, related_name='issues')
class Meta:
ordering = ['-number']