mirror of
https://github.com/retspen/webvirtcloud
synced 2024-12-26 16:15:25 +00:00
13 lines
244 B
Python
13 lines
244 B
Python
|
|
||
|
from rest_framework import serializers
|
||
|
from networks.models import Networks
|
||
|
|
||
|
|
||
|
class NetworksSerializer(serializers.ModelSerializer):
|
||
|
|
||
|
class Meta:
|
||
|
model = Networks
|
||
|
fields = ['name', 'status', 'device', 'forward']
|
||
|
|
||
|
|