8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-12-26 08:53:46 +00:00
re2o/machines/serializers.py
2016-07-18 23:22:59 +02:00

9 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')