mirror of
https://github.com/netbox-community/netbox.git
synced 2026-04-05 00:47:17 +02:00
Avoid setting mutable panel actions
This commit is contained in:
@@ -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):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user