8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-30 08:32:26 +00:00
re2o/machines/serializers.py
Dalahro 0a847b5a2c Modification du paginateur
Factorisation du machin
2016-10-07 23:40:44 +02:00

10 lines
236 B
Python

from rest_framework import serializers
from machines.models import Interface
class InterfaceSerializer( serializers.ModelSerializer):
class Meta:
model = Interface
fields = ('ipv4', 'mac_address', 'dns', 'type')