mirror of
https://github.com/netbox-community/netbox.git
synced 2026-04-09 10:53:50 +02:00
CopyContent does not need to override render()
This commit is contained in:
@@ -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,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user