mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-16 04:02:52 -06:00
Add csrf_token
to PluginTemplateExtension context
This commit is contained in:
parent
1f5d2520c3
commit
ff3b348771
@ -18,6 +18,7 @@ def _get_registered_content(obj, method, template_context):
|
||||
'object': obj,
|
||||
'request': template_context['request'],
|
||||
'settings': template_context['settings'],
|
||||
'csrf_token': template_context['csrf_token'],
|
||||
}
|
||||
|
||||
model_name = obj._meta.label_lower
|
||||
|
Loading…
Reference in New Issue
Block a user