mirror of
https://github.com/netbox-community/netbox.git
synced 2026-04-19 07:30:01 +02:00
Misc cleanup
This commit is contained in:
@@ -184,4 +184,7 @@ def static_with_params(path, **params):
|
||||
|
||||
@register.simple_tag(takes_context=True)
|
||||
def render(context, component):
|
||||
"""
|
||||
Render a UI component (e.g. a Panel) by calling its render() method and passing the current template context.
|
||||
"""
|
||||
return mark_safe(component.render(context))
|
||||
|
||||
Reference in New Issue
Block a user