Skip to content

Commit

Permalink
The in_order method for Series no longer returns articles that have n…
Browse files Browse the repository at this point in the history
…ot yet reached their publishing date.
  • Loading branch information
lethain committed Jan 18, 2009
1 parent 223719b commit 85cf71c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models.py
Expand Up @@ -433,7 +433,7 @@ def latest(self, qty=10):
return self.entry_set.all().filter(**{'pub_date__lte': datetime.datetime.now()})[:qty]

def in_order(self):
return self.entry_set.order_by('id')
return self.entry_set.filter(**{'pub_date__lte': datetime.datetime.now()}).order_by('id')

def num_articles(self):
return self.entry_set.all().count()
Expand Down

0 comments on commit 85cf71c

Please sign in to comment.