修复比赛列表页顺序问题

This commit is contained in:
virusdefender 2015-08-25 22:56:07 +08:00
parent f5bca2428b
commit 4e649d54e4

View File

@ -338,7 +338,7 @@ def contest_list_page(request, page=1):
所有比赛的列表页
"""
# 正常情况
contests = Contest.objects.filter(visible=True)
contests = Contest.objects.filter(visible=True).order_by("-create_time")
# 搜索的情况
keyword = request.GET.get("keyword", None)