Add organization private pages
This commit is contained in:
parent
4c3441b197
commit
4502dbf6b9
14 changed files with 369 additions and 156 deletions
|
@ -15,7 +15,8 @@ class ProblemFeed(Feed):
|
|||
description = 'The latest problems added on the %s website' % settings.SITE_LONG_NAME
|
||||
|
||||
def items(self):
|
||||
return Problem.objects.filter(is_public=True, is_organization_private=False).order_by('-date', '-id')[:25]
|
||||
return BlogPost.objects.filter(visible=True, publish_on__lte=timezone.now(), is_organization_private=False) \
|
||||
.order_by('-sticky', '-publish_on')
|
||||
|
||||
def item_title(self, problem):
|
||||
return problem.name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue