From 81f701badbaf55bf890050d72526edf1d74ad587 Mon Sep 17 00:00:00 2001 From: Arthur Date: Fri, 17 Feb 2023 08:38:15 -0800 Subject: [PATCH] fix serializer --- netbox_napalm_plugin/api/serializers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/netbox_napalm_plugin/api/serializers.py b/netbox_napalm_plugin/api/serializers.py index 9a4728d..684aad6 100644 --- a/netbox_napalm_plugin/api/serializers.py +++ b/netbox_napalm_plugin/api/serializers.py @@ -7,7 +7,7 @@ class NapalmPlatformSerializer(NetBoxModelSerializer): url = serializers.HyperlinkedIdentityField( - view_name="plugins-api:netbox_napalm_plugin:napalmplatform-detail" + view_name="plugins-api:netbox_napalm_plugin-api:napalmplatform-detail" ) platform = NestedPlatformSerializer() @@ -15,6 +15,7 @@ class Meta: model = NapalmPlatform fields = [ "id", + "url", "platform", "napalm_driver", "napalm_args",