1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Add documentation for PluginTemplateContent

This commit is contained in:
Jeremy Stretch
2020-03-25 16:25:44 -04:00
parent 68a0e76ca6
commit 5540079e81
2 changed files with 40 additions and 2 deletions

View File

@@ -88,8 +88,8 @@ class PluginTemplateContent:
def render(self, template, extra_context=None):
"""
Convenience menthod for rendering the provided template name. The detail page object is automatically
passed into the template context as `obj` and the origional detail page's context is available as
Convenience method for rendering the provided template name. The detail page object is automatically
passed into the template context as `obj` and the original detail page's context is available as
`obj_context`. An additional context dictionary may be passed as `extra_context`.
"""
context = {