mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-06 01:40:52 +00:00
fix: 修复 json m2m field 中正则有问题匹配不正确
This commit is contained in:
@@ -387,7 +387,7 @@ class RelatedManager:
|
||||
lookup = "{}__{}".format(name, match)
|
||||
q = Q(**{lookup: val})
|
||||
except re.error:
|
||||
q = ~Q()
|
||||
q = Q(pk__isnull=True)
|
||||
elif match == "not":
|
||||
q = ~Q(**{name: val})
|
||||
elif match in ['m2m', 'in']:
|
||||
|
Reference in New Issue
Block a user