change duration of pinned events to 1 day
This commit is contained in:
@@ -96,8 +96,8 @@ class ArticleManager(PublishedManager, models.Manager):
|
||||
|
||||
post_date = post_date.replace(year=__year, month=__month)
|
||||
|
||||
# Get date for event posts that is max 7 days old.
|
||||
event_date = datetime.date.today() - datetime.timedelta(7)
|
||||
# Get date for event posts that is max 1 day old.
|
||||
event_date = datetime.date.today() - datetime.timedelta(1)
|
||||
|
||||
return (
|
||||
self.published(public)
|
||||
|
||||
Reference in New Issue
Block a user