[Bugfix] 修复资产授权列表搜索 无效的 出现500错误

pull/3342/head
jym503558564 2019-10-15 12:41:29 +08:00
parent ad3524f942
commit 01ead7c8e1
1 changed files with 1 additions and 1 deletions

View File

@ -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) |