mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-25 22:22:26 +00:00
10 lines
225 B
Python
10 lines
225 B
Python
|
from rest_framework import serializers
|
||
|
from machines.models import Interface
|
||
|
|
||
|
class InterfaceSerializer( serializers.ModelSerializer):
|
||
|
class Meta:
|
||
|
model = Interface
|
||
|
fields = ('id','ipv4', 'mac_address')
|
||
|
|
||
|
|