mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-28 11:01:13 +00:00
[Bugfix] 修复资产授权列表搜索 无效的 出现500错误
This commit is contained in:
parent
ad3524f942
commit
01ead7c8e1
@ -29,7 +29,7 @@ class BasePermissionQuerySet(models.QuerySet):
|
||||
return self.filter(is_active=False)
|
||||
|
||||
def invalid(self):
|
||||
now = timezone.now
|
||||
now = timezone.now()
|
||||
q = (
|
||||
Q(is_active=False) |
|
||||
Q(date_start__gt=now) |
|
||||
|
Loading…
Reference in New Issue
Block a user