Commit 3e21dcf4 authored by haowang's avatar haowang

fix code

parent 6688e8f1
......@@ -102,7 +102,7 @@ class ReplyManageListView(APIView):
other_filters = {}
if topic_content:
other_filters['topic_content'] = topic_content
other_filters['topic_content'] = topic_content.strip()
if reply_user_type:
reply_user_type = int(reply_user_type)
if reply_user_type in [USER_EXTRA_TYPE.REAL, USER_EXTRA_TYPE.SHADOW, USER_EXTRA_TYPE.KOL]:
......@@ -120,7 +120,7 @@ class ReplyManageListView(APIView):
if id_:
filters['id'] = int(id_)
if content:
filters['content__contains'] = content
filters['content__contains'] = content.strip()
if belong_type:
if belong_type in REPLY_BELONG_TYPE:
filters['belong_type'] = belong_type
......
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