Skip to content

Commit

Permalink
Fixed bug in RSS feed for translations.
Browse files Browse the repository at this point in the history
  • Loading branch information
lethain committed Jul 8, 2008
1 parent 286e51a commit 5092062
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion models.py
Expand Up @@ -362,7 +362,8 @@ def get_absolute_url(self):
return u"/language/%s/" % self.slug

def latest(self, qty=None):
return self.translation_set.all().filter(**{'translated__pub_date__lte': datetime.datetime.now()})
translations = self.translation_set.all().filter(**{'translated__pub_date__lte': datetime.datetime.now()})
return [ x.translated for x in translations ]


class Project(models.Model):
Expand Down

0 comments on commit 5092062

Please sign in to comment.