mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-12 11:33:14 +00:00
fix: Org is None not has id attribute
This commit is contained in:
parent
660572a0ea
commit
64125051df
@ -87,6 +87,8 @@ class OrgResourceStatisticsRefreshUtil:
|
|||||||
if not cache_field_name:
|
if not cache_field_name:
|
||||||
return
|
return
|
||||||
org = getattr(instance, 'org', None)
|
org = getattr(instance, 'org', None)
|
||||||
|
if not org:
|
||||||
|
return
|
||||||
cache_field_name = tuple(cache_field_name)
|
cache_field_name = tuple(cache_field_name)
|
||||||
cls.refresh_org_fields.delay(org_fields=((org, cache_field_name),))
|
cls.refresh_org_fields.delay(org_fields=((org, cache_field_name),))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user