From b91dc1243ba998af69cd6a8fba7494c4af824d02 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Thu, 2 Apr 2026 10:49:17 -0400 Subject: [PATCH] Avoid setting mutable panel actions --- netbox/netbox/ui/panels.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/netbox/netbox/ui/panels.py b/netbox/netbox/ui/panels.py index a2f3774af..8409bf6ed 100644 --- a/netbox/netbox/ui/panels.py +++ b/netbox/netbox/ui/panels.py @@ -53,7 +53,10 @@ class Panel: def __init__(self, title=None, actions=None): if title is not None: self.title = title - self.actions = actions or self.actions or [] + if actions is not None: + self.actions = actions + if self.actions is None: + self.actions = [] def get_context(self, context): """