Browse Source

fix: Org is None not has id attribute

pull/13084/head
Bai 7 months ago committed by Bryan
parent
commit
64125051df
  1. 2
      apps/orgs/signal_handlers/cache.py

2
apps/orgs/signal_handlers/cache.py

@ -87,6 +87,8 @@ class OrgResourceStatisticsRefreshUtil:
if not cache_field_name:
return
org = getattr(instance, 'org', None)
if not org:
return
cache_field_name = tuple(cache_field_name)
cls.refresh_org_fields.delay(org_fields=((org, cache_field_name),))

Loading…
Cancel
Save