Update views.py

This commit is contained in:
ibuler 2016-03-25 17:36:12 +08:00
parent 2c74c8a8df
commit d7442b4879

View File

@ -27,7 +27,7 @@ def log_list(request, offset):
posts = Log.objects.filter(is_finished=False).order_by('-start_time')
if keyword:
posts = posts.filter(Q(user__icontains=keyword) | Q(host__icontains=keyword) |
Q(login_type_icontains=keyword))
Q(login_type__icontains=keyword))
elif offset == 'exec':
posts = ExecLog.objects.all().order_by('-id')