comparison bns_website/news/models.py @ 37:353ca3874f43

I changed the New tag to be the last 30 days instead of 3.
author Bob Mourlam <bob.mourlam@gmail.com>
date Sun, 06 Nov 2011 20:22:07 -0600
parents 1357c69e887d
children 9ce9f77d6cde
comparison
equal deleted inserted replaced
24:0bac5dfbcc7c 37:353ca3874f43
13 13
14 # User field? 14 # User field?
15 15
16 16
17 def is_new(self): 17 def is_new(self):
18 if datetime.now() - self.date <= timedelta(days=3): 18 if datetime.now() - self.date <= timedelta(days=30):
19 return True 19 return True
20 20
21 return False 21 return False
22 22
23 23