Skip to content

Commit

Permalink
fixup! [FIX] auditlog: registry propagation
Browse files Browse the repository at this point in the history
  • Loading branch information
gurneyalex committed Oct 22, 2024
1 parent 56d1a1e commit 5d2afc0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion auditlog/models/rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,8 @@ def _update_vals_list(self, vals_list):
return vals_list

def _update_registry(self):
"""Update the registry after a modification on automation rules."""
"""Force a registry reload after rule change"""
# this code comes from `base_automation` which has a similar need
if self.env.registry.ready and not self.env.context.get("import_file"):
# notify other workers
self.env.registry.registry_invalidated = True

0 comments on commit 5d2afc0

Please sign in to comment.