Fix problem feed
This commit is contained in:
parent
0adbc74d95
commit
acc8a91e63
1 changed files with 2 additions and 2 deletions
|
@ -15,8 +15,8 @@ class ProblemFeed(Feed):
|
||||||
description = 'The latest problems added on the %s website' % settings.SITE_LONG_NAME
|
description = 'The latest problems added on the %s website' % settings.SITE_LONG_NAME
|
||||||
|
|
||||||
def items(self):
|
def items(self):
|
||||||
return BlogPost.objects.filter(visible=True, publish_on__lte=timezone.now(), is_organization_private=False) \
|
return Problem.objects.filter(is_public=True, is_organization_private=False).defer('description')\
|
||||||
.order_by('-sticky', '-publish_on')
|
.order_by('-date', '-id')[:25]
|
||||||
|
|
||||||
def item_title(self, problem):
|
def item_title(self, problem):
|
||||||
return problem.name
|
return problem.name
|
||||||
|
|
Loading…
Reference in a new issue