From 225d68b413735a5544f3f094525890f57d883ebb Mon Sep 17 00:00:00 2001 From: zema1 Date: Wed, 1 Nov 2017 18:35:27 +0800 Subject: [PATCH] tiny work --- problem/views/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/problem/views/admin.py b/problem/views/admin.py index 1d26cbef..3acd4b52 100644 --- a/problem/views/admin.py +++ b/problem/views/admin.py @@ -173,7 +173,7 @@ class ProblemAPI(APIView): except Problem.DoesNotExist: return self.error("Problem does not exist") - problems = Problem.objects.all().order_by("-create_time") + problems = Problem.objects.filter(contest_id__isnull=True).order_by("-create_time") if not user.can_mgmt_all_problem(): problems = problems.filter(created_by=user) keyword = request.GET.get("keyword")