Parcourir la source

解决查询日志异常1

tanghongbin il y a 4 ans
Parent
commit
b390c16fea
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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)