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

Introduce the wireless app and SSID model

This commit is contained in:
jeremystretch
2021-10-12 12:27:12 -04:00
parent 8e1535f7ec
commit 8b80b0c3df
28 changed files with 470 additions and 0 deletions

View File

@ -0,0 +1,16 @@
from rest_framework import serializers
from netbox.api import WritableNestedSerializer
from wireless.models import *
__all__ = (
'NestedSSIDSerializer',
)
class NestedSSIDSerializer(WritableNestedSerializer):
url = serializers.HyperlinkedIdentityField(view_name='wireless-api:ssid-detail')
class Meta:
model = SSID
fields = ['id', 'url', 'display', 'name']