This commit is contained in:
zmister 2021-07-21 19:17:52 +08:00
commit 494168fc74
2 changed files with 3 additions and 1 deletions

View File

@ -12,6 +12,8 @@
- [优化]个人中心我协作的文集页面及功能;
- [优化]后台邮件服务器配置逻辑和页面展示;
- [优化]文档发布和修改的异常判断和处理;
- [优化]首页移动端控制栏样式;
- [优化]文集内搜索文档;
### v0.6.8 2021-06-27

View File

@ -400,7 +400,7 @@ def project_index(request,pro_id):
# status=1
# ).values('id','name','top_doc').order_by('sort')
if kw != '':
search_result = Doc.objects.filter(top_doc=int(pro_id),pre_content__icontains=kw)
search_result = Doc.objects.filter(Q(pre_content__icontains=kw) | Q(name__icontains=kw),top_doc=int(pro_id))
remove_markdown_tag(search_result)
return render(request,'app_doc/project_doc_search.html',locals())
return render(request, 'app_doc/project.html', locals())