From 5929c7cf1eacaf7e9087e36124d64f5a9e14e4bf Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Thu, 2 Apr 2026 10:37:21 -0400 Subject: [PATCH] CopyContent does not need to override render() --- netbox/netbox/ui/actions.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/netbox/netbox/ui/actions.py b/netbox/netbox/ui/actions.py index 791171ffc..b87c25baa 100644 --- a/netbox/netbox/ui/actions.py +++ b/netbox/netbox/ui/actions.py @@ -148,10 +148,8 @@ class CopyContent(PanelAction): super().__init__(**kwargs) self.target_id = target_id - def render(self, context): - return render_to_string(self.template_name, { + def get_context(self, context): + return { + **super().get_context(context), 'target_id': self.target_id, - 'label': self.label, - 'button_class': self.button_class, - 'button_icon': self.button_icon, - }) + }