mirror of
https://github.com/jumpserver/jumpserver.git
synced 2026-02-21 06:22:23 +00:00
fix: 修复获取UserLoginLog对象org失败的问题
This commit is contained in:
@@ -91,7 +91,7 @@ class OrgResourceStatisticsRefreshUtil:
|
||||
if not cache_field_name:
|
||||
return
|
||||
OrgResourceStatisticsCache(Organization.root()).expire(*cache_field_name)
|
||||
if instance.org:
|
||||
if getattr(instance, 'org', None):
|
||||
OrgResourceStatisticsCache(instance.org).expire(*cache_field_name)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user