mirror of
https://github.com/retspen/webvirtcloud
synced 2024-12-27 08:35:22 +00:00
12 lines
244 B
Python
12 lines
244 B
Python
|
|
||
|
from rest_framework import serializers
|
||
|
from interfaces.models import Interfaces
|
||
|
|
||
|
|
||
|
class InterfacesSerializer(serializers.ModelSerializer):
|
||
|
|
||
|
class Meta:
|
||
|
model = Interfaces
|
||
|
fields = ['name', 'type', 'state', 'mac']
|
||
|
|