Merge pull request #4682 from netbox-community/4651-csrf-in-plugintemplateextension
4651: Add `csrf_token` to PluginTemplateExtension context
This commit is contained in:
commit
abcd26da43
|
|
@ -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'],
|
||||
'perms': template_context['perms'],
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue