Keep blog posts on front page for 30 days.

This commit is contained in:
Bradley M. Kuhn 2012-02-15 15:13:30 -08:00
parent d3d6fe19ee
commit 1688c69b0f

View file

@ -47,7 +47,7 @@ class Entry(models.Model):
self.slug)) self.slug))
def is_recent(self): def is_recent(self):
return self.pub_date > (datetime.now() - timedelta(days=14)) return self.pub_date > (datetime.now() - timedelta(days=30))
# question: does datetime.now() do a syscall each time is it called? # question: does datetime.now() do a syscall each time is it called?
# Ping google blogs and technorati. Taken from # Ping google blogs and technorati. Taken from