mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-24 08:25:17 -06:00
revert object to device in context data
This commit is contained in:
parent
b50ce17f57
commit
55c7c14fba
@ -434,7 +434,7 @@ class DeviceViewSet(
|
||||
# Compile context data
|
||||
context_data = device.get_config_context()
|
||||
context_data.update(request.data)
|
||||
context_data.update({'object': device})
|
||||
context_data.update({'device': device})
|
||||
|
||||
app_ns = registry['model_features']['custom_fields'].keys()
|
||||
for app in app_ns:
|
||||
|
@ -2080,7 +2080,7 @@ class DeviceRenderConfigView(generic.ObjectView):
|
||||
def get_extra_context(self, request, instance):
|
||||
# Compile context data
|
||||
context_data = instance.get_config_context()
|
||||
context_data.update({'object': instance})
|
||||
context_data.update({'device': instance})
|
||||
|
||||
app_ns = registry['model_features']['custom_fields'].keys()
|
||||
for app in app_ns:
|
||||
|
Loading…
Reference in New Issue
Block a user