Commit ad7d06d1 authored by zhanglu's avatar zhanglu

帖子图片列表

parent fa66f16c
......@@ -49,7 +49,7 @@ class TopicImageListView(APIView):
page = int(request.GET.get('page', 1))
limit = int(request.GET.get('limit', 50))
filters = json.loads(request.GET.get('filter', "{}"))
sorts_by = '2' # request.GET.getlist('sort[]')
sorts_by = json.loads(request.GET.get('sort_params', "[3]"))
res = self.rpc['physical/search/business/topic'](
offset=(page-1) * limit,
......
......@@ -53,6 +53,7 @@ urlpatterns = [
# topic相关
url(r'^topic/list$', TopicListView.as_view()),
url(r'^topic/img/list$', TopicImageListView.as_view()),
url(r'^topic/detail$', TopicUpdateOrCreateView.as_view()),
url(r'^topic/create$', TopicUpdateOrCreateView.as_view()),
url(r'^topic/batch_update$', TopicListBatchUpdate.as_view()),
......
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