소스 검색

解决查询日志异常1

tanghongbin 4 년 전
부모
커밋
b390c16fea
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Controller/LogController.py

+ 1 - 1
Controller/LogController.py

@@ -85,7 +85,7 @@ class LogView(View):
         line = request_dict.get('limit', None)
 
         if page and line:
-            log_qs = LogModel.objects.filter(user__id=token.userID).values('id', 'operation', 'time', 'ip', 'user__username')
+            log_qs = LogModel.objects.filter().values('id', 'operation', 'time', 'ip', 'user__username')
             if log_qs.exists():
                 page = int(page)
                 line = int(line)