add judge config languages and problem tag api

This commit is contained in:
virusdefender
2017-01-24 13:22:40 +08:00
parent 0fe5b10418
commit 04fcfcd5be
14 changed files with 152 additions and 20 deletions

View File

@@ -0,0 +1,8 @@
from utils.api import APIView
from .models import ProblemTag
class ProblemTagAPI(APIView):
def get(self, request):
return self.success([item.name for item in ProblemTag.objects.all().order_by("id")])