fix: 修复命令列表模糊搜索报错500的问题

fix: 修复命令列表模糊搜索报错500的问题
pull/8420/head
Jiangjie.Bai 2022-06-16 13:16:25 +08:00 committed by 老广
parent 75a72fb182
commit 2be74c4b84
1 changed files with 3 additions and 0 deletions

View File

@ -297,6 +297,9 @@ class QuerySet(DJQuerySet):
self._command_store_config = command_store_config
self._storage = CommandStore(command_store_config)
# 命令列表模糊搜索时报错
super().__init__()
@lazyproperty
def _grouped_method_calls(self):
_method_calls = {k: list(v) for k, v in groupby(self._method_calls, lambda x: x[0])}