mirror of
https://github.com/netbox-community/netbox.git
synced 2025-12-22 05:12:22 -06:00
Update templates to use "object" context var
This commit is contained in:
@@ -109,7 +109,7 @@ class ConfigContextView(generic.ObjectView):
|
||||
format = 'json'
|
||||
|
||||
return render(request, 'extras/configcontext.html', {
|
||||
'configcontext': configcontext,
|
||||
'object': configcontext,
|
||||
'format': format,
|
||||
})
|
||||
|
||||
@@ -215,7 +215,7 @@ class ObjectChangeView(generic.ObjectView):
|
||||
diff_added = diff_removed = objectchange.object_data
|
||||
|
||||
return render(request, 'extras/objectchange.html', {
|
||||
'objectchange': objectchange,
|
||||
'object': objectchange,
|
||||
'diff_added': diff_added,
|
||||
'diff_removed': diff_removed,
|
||||
'next_change': next_change,
|
||||
|
||||
Reference in New Issue
Block a user