提交 d5debc37 编写于 作者: baltery's avatar baltery

[Bugfix] 修复命令搜索异常bug

上级 40a0c459
......@@ -21,7 +21,7 @@ class CommandBase(object):
@abc.abstractmethod
def count(self, date_from=None, date_to=None,
user=None, asset=None, system_user=None,
input=None, session=None):
user=None, asset=None, system_user=None,
input=None, session=None):
pass
......@@ -38,7 +38,7 @@ class CommandListView(DatetimeSearchMixin, AdminUserRequiredMixin, ListView):
if self.system_user:
filter_kwargs['system_user'] = self.system_user
if self.command:
filter_kwargs['input__contains'] = self.command
filter_kwargs['input'] = self.command
queryset = common_storage.filter(**filter_kwargs)
return queryset
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册