Commit d9b66e99 authored by zhanglu's avatar zhanglu

Merge branch 'feature/op_topic' into 'dev'

添加帖子排序

See merge request alpha/sun!106
parents 9542695e fa66f16c
......@@ -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