Merge pull request #4682 from netbox-community/4651-csrf-in-plugintemplateextension

4651: Add `csrf_token` to PluginTemplateExtension context
This commit is contained in:
Jeremy Stretch 2020-05-26 09:03:07 -04:00 committed by GitHub
commit abcd26da43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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'],
}