Commit fa66f16c authored by zhanglu's avatar zhanglu

添加帖子排序

parent 4a4f9e59
......@@ -14,7 +14,7 @@ class TopicListView(APIView):
offset = int(request.GET.get('page', 0))
limit = int(request.GET.get('limit', 10))
filters = json.loads(request.GET.get('filter', "{}"))
sorts_by = '2' # request.GET.getlist('sort[]')
sorts_by = json.loads(request.GET.get('sort_params', "[3]"))
if user_id:
filters.update({'user_id': user_id})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment