mirror of https://github.com/jumpserver/jumpserver
fix: 修复获取UserLoginLog对象org失败的问题
parent
7d0c480a13
commit
61c96baeae
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue