cleanup
This commit is contained in:
@@ -14,7 +14,9 @@ class PostManager(models.Manager):
|
||||
|
||||
def get_last_months_posts(self):
|
||||
date_today = timezone.now().date()
|
||||
return self.get_visible_articles().filter(public_date__gt=date_today - timedelta(days=365))
|
||||
return self.get_visible_articles().filter(
|
||||
public_date__gt=date_today - timedelta(days=365)
|
||||
)
|
||||
|
||||
def get_all_posts_with_date(self):
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user